Spaces:
Running
Running
Update app.py
Browse files
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 |
|