├── README.md └── UnFollower.py /README.md: -------------------------------------------------------------------------------- 1 | # InstaBotPro 1.0 2 | 3 | First Thing First : It Will Just UnFollow 4 | It will Be More Professional In Future ! -------------------------------------------------------------------------------- /UnFollower.py: -------------------------------------------------------------------------------- 1 | from selenium.webdriver.common.keys import Keys 2 | 3 | from time import sleep 4 | import selenium 5 | import random 6 | Drive = selenium.webdriver.Chrome("/usr/lib/chromium-browser/chromedriver") 7 | #Drive = selenium.webdriver.Firefox() 8 | 9 | class Insta(): 10 | def LogIn(UserName,Password): 11 | Drive.get("https://www.instagram.com/accounts/login/") 12 | sleep(5) 13 | InputElements=Drive.find_elements_by_class_name("zyHYP") 14 | UsernameInput=InputElements[0] 15 | PasswordInput=InputElements[1] 16 | UsernameInput.send_keys(str(UserName)) 17 | PasswordInput.send_keys(str(Password)) 18 | Click=Drive.find_element_by_xpath("/html/body/div[1]/section/main/div/article/div/div[1]/div/form/div[4]/button/div") 19 | Click.click() 20 | sleep(10) 21 | 22 | def GotoFollowings(): 23 | Drive.get("https://www.instagram.com/urge_ir/") 24 | sleep(5) 25 | FollowingsElement=(Drive.find_elements_by_class_name("Y8-fY"))[2] 26 | FollowingsElement.click() 27 | sleep(10) 28 | def ScrollDownFollowings(): 29 | Drive.find_element_by_class_name("HYpXt").click() 30 | body = Drive.find_element_by_css_selector('body') 31 | body.send_keys(Keys.PAGE_DOWN) 32 | def UnFollowFollowings(HowMany,RandomMin,RandomMax): 33 | for i in range (int(HowMany)): 34 | sleep(1) 35 | List=Drive.find_elements_by_class_name("_8A5w5") 36 | List=List[1:len(List)] 37 | print ("i=",i) 38 | print ("len =",len(List)) 39 | while len(List)<2: 40 | Insta.ScrollDownFollowings() 41 | List=Drive.find_elements_by_class_name("_8A5w5") 42 | List=List[1:len(List)] 43 | sleep(2) 44 | 45 | List[0].click() 46 | sleep(3) 47 | Drive.find_element_by_class_name("-Cab_").click() 48 | sleep(random.uniform(RandomMin, RandomMax)) 49 | while True: 50 | Insta.LogIn(UserName,Password) 51 | Insta.GotoFollowings() 52 | Insta.UnFollowFollowings(50,1,10) --------------------------------------------------------------------------------