Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,8 @@ def take_webdata(url):
|
|
| 62 |
|
| 63 |
if target_dropdown:
|
| 64 |
klasemenlink = target_dropdown.find('a', class_='dropdown-item',string='KLASEMEN')
|
| 65 |
-
|
|
|
|
| 66 |
#for link in links:
|
| 67 |
#urlx = link.get('href')
|
| 68 |
#text = link.get_text(strip=True)
|
|
@@ -85,7 +86,7 @@ def take_webdata(url):
|
|
| 85 |
if wd:
|
| 86 |
wd.quit()
|
| 87 |
|
| 88 |
-
return html ,target_dropdown,
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
main()
|
|
|
|
| 62 |
|
| 63 |
if target_dropdown:
|
| 64 |
klasemenlink = target_dropdown.find('a', class_='dropdown-item',string='KLASEMEN')
|
| 65 |
+
if klasemenlink:
|
| 66 |
+
urlx = klasemenlink.get('href')
|
| 67 |
#for link in links:
|
| 68 |
#urlx = link.get('href')
|
| 69 |
#text = link.get_text(strip=True)
|
|
|
|
| 86 |
if wd:
|
| 87 |
wd.quit()
|
| 88 |
|
| 89 |
+
return html ,target_dropdown, urlx
|
| 90 |
|
| 91 |
if __name__ == "__main__":
|
| 92 |
main()
|