├── .gitattributes └── Code.py /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Code.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """Code 3 | 4 | Automatically generated by Colaboratory. 5 | 6 | Original file is located at 7 | https://colab.research.google.com/drive/1ytoafPlnv4kuNfbRLXygDDxKzK2TxZF4 8 | """ 9 | 10 | browser=webdriver.Chrome("chromedriver way") 11 | browser.get("https://www.instagram.com/") 12 | time.sleep(2) 13 | browser.find_element_by_xpath("/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[1]/div/label/input")\ 14 | .send_keys("Mail or ID") 15 | browser.find_element_by_xpath("//*[@id='loginForm']/div/div[2]/div/label/input")\ 16 | .send_keys("Key") 17 | time.sleep(1) 18 | browser.find_element_by_xpath("//*[@id='loginForm']/div/div[3]")\ 19 | .click() 20 | time.sleep(4) 21 | tıkla=browser.find_element_by_xpath("/html/body/div[1]/section/main/div/div/div/div/button") 22 | tıkla.click() 23 | time.sleep(2) 24 | tıkla2=browser.find_element_by_xpath("/html/body/div[4]/div/div/div/div[3]/button[2]") 25 | tıkla2.click() 26 | time.sleep(2) 27 | tıkla3=browser.find_element_by_xpath("/html/body/div[1]/section/main/section/div[3]/div[2]/div[1]/a/div") 28 | tıkla3.click() 29 | time.sleep(2) 30 | d=1 31 | while d<20: 32 | c=4 33 | while c<50: 34 | 35 | tıkla4=browser.find_element_by_xpath("/html/body/div[1]/section/main/div/div[2]/div/div/div["+str(c)+"]/div[3]/button") 36 | tıkla4.click() 37 | time.sleep(0.3) 38 | c+=1 39 | browser.refresh() 40 | time.sleep(4) 41 | d+=1 42 | --------------------------------------------------------------------------------