Spaces:
Sleeping
Sleeping
Commit
·
d804491
1
Parent(s):
6b73ef6
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']
|
23 |
for tag in text_tags:
|
24 |
for element in soup.find_all(tag):
|
25 |
files.append(element.get_text())
|