Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def find_all(url,q=None,num=None):
|
|
| 21 |
print(soup.find_all('p'))
|
| 22 |
for tag in soup.find_all():
|
| 23 |
try:
|
| 24 |
-
n =
|
| 25 |
rawp.append(f'{tag.name}:{tag.string}[{n}]')
|
| 26 |
except Exception as e:
|
| 27 |
print (e)
|
|
|
|
| 21 |
print(soup.find_all('p'))
|
| 22 |
for tag in soup.find_all():
|
| 23 |
try:
|
| 24 |
+
n = tag.get(tag.string)
|
| 25 |
rawp.append(f'{tag.name}:{tag.string}[{n}]')
|
| 26 |
except Exception as e:
|
| 27 |
print (e)
|