Omnibus commited on
Commit
dfa4bc3
1 Parent(s): df4b728

Update app.py

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