Omnibus commited on
Commit
4d3da03
1 Parent(s): 817d95e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -21,10 +21,11 @@ def find_all(url,q=None,num=None):
21
  #print(soup.find_all('p'))
22
 
23
 
24
- rawp.append([tag.name for tag in soup.find_all()] )
25
  #soup_list = [tag for tag in soup.find_all()]
26
  #for tag in soup.find_all('h1','h2','h3','p','div','ul'):
27
- #for tag in soup_list:
 
28
  #print(tag.findChildren("a" , recursive=False))
29
  #try:
30
  #n = tag.get(tag.string)
 
21
  #print(soup.find_all('p'))
22
 
23
 
24
+ #rawp.append([tag.name for tag in soup.find_all()] )
25
  #soup_list = [tag for tag in soup.find_all()]
26
  #for tag in soup.find_all('h1','h2','h3','p','div','ul'):
27
+ for tag in soup.find_all():
28
+ print (tag.get_text().name)
29
  #print(tag.findChildren("a" , recursive=False))
30
  #try:
31
  #n = tag.get(tag.string)