Omnibus commited on
Commit
9bfaf29
1 Parent(s): 57c61e4

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.text,'lxml')
296
  # title of the page
297
  print(soup.title)
298
  # get attributes: