Omnibus commited on
Commit
9f5fe72
1 Parent(s): a5a1eed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -292,7 +292,7 @@ def find_all(purpose,task,history, url):
292
  rawp = []
293
  source = requests.get(url)
294
  #source = urllib.request.urlopen(url).read()
295
- soup = bs4.BeautifulSoup(source,'lxml')
296
  # title of the page
297
  print(soup.title)
298
  # get attributes:
 
292
  rawp = []
293
  source = requests.get(url)
294
  #source = urllib.request.urlopen(url).read()
295
+ soup = bs4.BeautifulSoup(source.content,'lxml')
296
  # title of the page
297
  print(soup.title)
298
  # get attributes: