Closed arham837 closed 1 year ago
Can you add in the following code block?
remove:
uid = self.browser.find_element(By.XPATH, '/html/body/div[2]/div[2]/div[2]/form/div/div[1]/input')
uid.send_keys(username)
sleep(2)
button = self.browser.find_element(By.XPATH, '/html/body/div[2]/div[2]/div[2]/form/div/div[3]/button')
button.click()
add:
N = 6 actions = ActionChains(self.browser) for _ in range(N): actions.send_keys(Keys.TAB).perform() sleep(2)
actions.send_keys(username).perform() sleep(2)
I am getting same error. As chrome open and then closes
Can you your source as screenshot please? I want to check whether you have changed correctly or not.
screenshots are here https://ibb.co/gPMyJqM
Why didn't you update the code? Please check my comment and update it. It seems wrong!
https://github.com/asimptot/FollowerBot/issues/61#issuecomment-1438232332
i have updated code see this https://ibb.co/XYVLtYj
No, it wasn't updated. Why do you write post_link in the 26th line? If you don't update the code, I can't help you, sorry. Please update it as I wrote in the above.
See i have done coding as you have told it i am freezed here only https://ibb.co/wNqdDKr
Please add
actions.send_keys(Keys.RETURN).perform() sleep(2)
after
actions.send_keys(username).perform() sleep(2)
It shouldn't be in for loop.
Done thanks for your help.
from time import sleep import sys sys.path.append(r'C:\Projects\Get_Free_Followers') from init import * from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait
username = input('What is your Instagram username?\n') print('Getting followers... Please do not terminate the program.')
class Instagram: def setup(self): Setup.init(self)
ig = Instagram() j = 0 while(True): ig.setup() i = 0 try: while(True): try: ig.go_to_website() i = i + 1 except: ig.close_browser() j = j + 1 except: print('An error has been occurred. Retrying...') https://ibb.co/8jZ3GVZ