Omnibus commited on
Commit
0766cce
1 Parent(s): 798a988

Update app.py

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