Spaces:
Sleeping
Sleeping
Commit
·
aa12d7c
1
Parent(s):
e38196e
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def finder(url, soup, media_type):
|
|
19 |
files = []
|
20 |
# Find text
|
21 |
if media_type == "text":
|
22 |
-
text_tags = ['p', 'h1', 'h2']
|
23 |
for tag in text_tags:
|
24 |
for element in soup.find_all(tag):
|
25 |
files.append(element.get_text())
|
|
|
19 |
files = []
|
20 |
# Find text
|
21 |
if media_type == "text":
|
22 |
+
text_tags = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
|
23 |
for tag in text_tags:
|
24 |
for element in soup.find_all(tag):
|
25 |
files.append(element.get_text())
|