sintamar commited on
Commit
cb9f3f3
·
verified ·
1 Parent(s): a9466f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, klasemenlink
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()