asimptot / FollowerBot

Follower bot for Instagram
191 stars 67 forks source link

Not working and getting error after giving username #55

Closed ajju2smart closed 1 year ago

ajju2smart commented 1 year ago

Hey Developer, Thanks for this.

But i need you help in running the code in my side. When i execute the code "get_instagram_followers" or others as well then i'm getting below error "Getting followers... Please do not terminate the program. An error has been occurred. Retrying..."

Can you please help

oskarfranz commented 1 year ago

You could try digging into the website and checking the path of the elements that the script simulates is using. In my case my laptop viewport it's smaller and the path of the elements had to be corrected for the following ones:

    uid = self.browser.find_element(By.XPATH, '/html/body/div[2]/div[1]/div[1]/form/div/div[0]/input')
    uid.send_keys(username)
    sleep(2)

    button = self.browser.find_element(By.XPATH, '/html/body/div[2]/div[1]/div[1]/form/div/div[2]/button')
    button.click()

    element_present = EC.presence_of_element_located((By.XPATH, '/html/body/div[2]/div[1]/div[0]/div/div/div[0]/div'))
    WebDriverWait(self.browser, 10000).until(element_present)

Alternatively, if you dont feel confortable doing that, or you just don't know how, you can access manually to the website ando do it by your self

The website:

Hope it helps!

asimptot commented 1 year ago

Thanks @oskarfranz !

@ajju2smart hi,

Does it work?

ajju2smart commented 1 year ago

Thanks @oskarfranz !

@ajju2smart hi,

Does it work?

This module did not work for me so I have switched to a different module.

asimptot commented 1 year ago

After you switched, does it work on your local?

ajju2smart commented 1 year ago

I started with InstaPy/Followbot/ and it also has many issue and none is helping out as a community, so i started with own modules and I'm working on it.