Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -306,7 +306,7 @@ def find_all(purpose,task,history, url):
|
|
306 |
print([tag.name for tag in soup.find_all()])
|
307 |
rawp=(f'RAW TEXT RETURNED: {soup.text}')
|
308 |
out.append(rawp)
|
309 |
-
q=
|
310 |
for p in soup.find_all(q):
|
311 |
out.append([{q:p.string,"parent":p.parent.name,"previous":[b for b in p.previous],"first-child":[b.name for b in p.children],"content":p}])
|
312 |
c=0
|
|
|
306 |
print([tag.name for tag in soup.find_all()])
|
307 |
rawp=(f'RAW TEXT RETURNED: {soup.text}')
|
308 |
out.append(rawp)
|
309 |
+
q=("a","p","span","content","article")
|
310 |
for p in soup.find_all(q):
|
311 |
out.append([{q:p.string,"parent":p.parent.name,"previous":[b for b in p.previous],"first-child":[b.name for b in p.children],"content":p}])
|
312 |
c=0
|