Skip to content

Instantly share code, notes, and snippets.

@josemariagarcia95
Created April 2, 2020 22:07
Show Gist options
  • Save josemariagarcia95/a7aca4e429e8c7a0ceaed8f8b7e4d9d1 to your computer and use it in GitHub Desktop.
Save josemariagarcia95/a7aca4e429e8c7a0ceaed8f8b7e4d9d1 to your computer and use it in GitHub Desktop.
# Loop through the images in the grid
for image_mosaic in chrome_driver.find_elements_by_class_name("mosaic-item"):
time.sleep(1)
# Open an image
chrome_driver.find_element_by_xpath("//a[@class='node-link']").click()
# Update its date
date_update()
n_photos += 1
# Go back to the grid
chrome_driver.find_element_by_xpath("//a[@class='back']").click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment