Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def find_all(url,q=None,num=None):
|
|
22 |
for tag in soup.find_all():
|
23 |
try:
|
24 |
n = tag.get(tag.string)
|
25 |
-
rawp.append([
|
26 |
except Exception as e:
|
27 |
print (e)
|
28 |
rawp.append({tag.name:tag.string})
|
|
|
22 |
for tag in soup.find_all():
|
23 |
try:
|
24 |
n = tag.get(tag.string)
|
25 |
+
rawp.append([tag.name:tag.string,"parent":tag.parent.name,"children":tag.children.name])
|
26 |
except Exception as e:
|
27 |
print (e)
|
28 |
rawp.append({tag.name:tag.string})
|