Omnibus commited on
Commit
07cfa54
1 Parent(s): c83c737

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def find_all(url,q=None,num=None):
47
  def find_it(url,q=None,num=None):
48
  out = []
49
  source = urllib.request.urlopen(url).read()
50
- soup = bs4.BeautifulSoup(source,'lxml')
 
51
  for p in soup.find_all(f'{q}'):
52
  print(p.findChildren())
53
 
 
47
  def find_it(url,q=None,num=None):
48
  out = []
49
  source = urllib.request.urlopen(url).read()
50
+ soup = bs4.BeautifulSoup(source.text,'lxml')
51
+
52
  for p in soup.find_all(f'{q}'):
53
  print(p.findChildren())
54