Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- for i in range(0,len(url_list)-1):
- # Access URL from list
- url = (url_list[i])
- driver.get(url)
- try:
- driver.find_element_by_class_name('js-share').click()
- pass
- except (NoSuchElementException, ElementNotVisibleException) as e:
- pass
- try:
- driver.find_element_by_xpath("/html/body/div[8]/div[2]/form/div[3]/button").click()
- pass
- except (NoSuchElementException, ElementNotVisibleException) as e:
- pass
- count +=1
- print(count)
- print('Job Done')
- driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement