Skip to content

Instantly share code, notes, and snippets.

@mdamien
Created February 2, 2017 20:34
Show Gist options
  • Select an option

  • Save mdamien/ed2df13bb3fb8c1ba3996564e8f91b17 to your computer and use it in GitHub Desktop.

Select an option

Save mdamien/ed2df13bb3fb8c1ba3996564e8f91b17 to your computer and use it in GitHub Desktop.
from selenium import webdriver
import time
driver = webdriver.Firefox()
driver.get("https://www.instagram.com/p/BP-rXUGBPJa/")
time.sleep(2)
print('click click click')
while True:
link = driver.find_element_by_css_selector('._l086v')
link.click()
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment