Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,11 +61,11 @@ def take_webdata(url):
|
|
| 61 |
target_dropdown = soup.find('div', class_='dropdown-menu', attrs={'aria-labelledby': 'navbar-match'})
|
| 62 |
|
| 63 |
if target_dropdown:
|
| 64 |
-
|
| 65 |
|
| 66 |
-
for link in links:
|
| 67 |
-
urlx = link.get('href')
|
| 68 |
-
text = link.get_text(strip=True)
|
| 69 |
#print(f"Text: {text}")
|
| 70 |
#print(f"URL: {url}")
|
| 71 |
#print("---")
|
|
@@ -85,7 +85,7 @@ def take_webdata(url):
|
|
| 85 |
if wd:
|
| 86 |
wd.quit()
|
| 87 |
|
| 88 |
-
return html ,target_dropdown,
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
main()
|
|
|
|
| 61 |
target_dropdown = soup.find('div', class_='dropdown-menu', attrs={'aria-labelledby': 'navbar-match'})
|
| 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)
|
| 69 |
#print(f"Text: {text}")
|
| 70 |
#print(f"URL: {url}")
|
| 71 |
#print("---")
|
|
|
|
| 85 |
if wd:
|
| 86 |
wd.quit()
|
| 87 |
|
| 88 |
+
return html ,target_dropdown, klasemenlink
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
main()
|