Skip to content

Instantly share code, notes, and snippets.

@converge
Created October 17, 2017 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save converge/fc052a688d99bd1c64b41c9a12d52708 to your computer and use it in GitHub Desktop.
Save converge/fc052a688d99bd1c64b41c9a12d52708 to your computer and use it in GitHub Desktop.
try:
browser.find_element_by_xpath(
'//article/div[2]/section[2]/div/a').click()
tmp_list = browser.find_element__by_tag_name('_6e4x5').\
find_elements_by_tag_name('a')
except:
tmp = False
pass
if tmp is False:
tmp_list = browser.find_element_by_class_name('_3gwk6').\
find_elements_by_tag_name('a')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment