Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ def find_it(url,q=None,num=None):
|
|
34 |
except Exception as e:
|
35 |
print (e)
|
36 |
#out.append(p)
|
37 |
-
out.append([{q:p.string,"parent":p.parent.name,"first-child":soup.select(f'{p.name}:first-child'),"content":p}])
|
38 |
#out.append(p.parent.name)
|
39 |
print(dir(p))
|
40 |
-
print(p.parent)
|
41 |
for url in soup.find_all('a'):
|
42 |
print(url.get('href'))
|
43 |
|
|
|
34 |
except Exception as e:
|
35 |
print (e)
|
36 |
#out.append(p)
|
37 |
+
out.append([{q:p.string,"parent":p.parent.name,"first-child":soup.select(f'{p.name}:first-child').name,"content":p}])
|
38 |
#out.append(p.parent.name)
|
39 |
print(dir(p))
|
40 |
+
print(p.parent.name)
|
41 |
for url in soup.find_all('a'):
|
42 |
print(url.get('href'))
|
43 |
|