Omnibus commited on
Commit
a98288c
1 Parent(s): 345c836

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=["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
 
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