Seems like this one isnt working anymore:
session.follow_user_followers(['friend1', 'friend2', 'friend3'], amount=10, randomize=False)
It worked for 6 weeks but now the bot is shutting down instead of following someone elses followers. The bot is running when I delete this script
mines doing the same thing
That's because dialog_address = "//body/div[2]/div/div[2]" is now an incorrect xpath in unfollow_util.get_users_through_dialog.
In unfollow_util.py
Temporary replace
dialog = browser.find_element_by_xpath(
"//div[text()='Followers' or text()='Following']/../../following-sibling::div")
with
dialog = browser.find_element_by_xpath(
"//div[contains(@class,'isgrP')]")
remember you must replace it in two places that have #find dialog otherwise it wont work
@mando15 good catch, can you please PR the change, it seems like quite some people is having this issue. thank you.
In my case the error was:
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//body/div[2]/div/div[1]"}
And I had to change from:
dialog_address = "//body/div[2]/div/div[2]"
to:
dialog_address = "//div[contains(@class,'isgrP')]"
in unfollow_util.get_users_through_dialog
In my unfollow_util.py it's line 809 (pypi instapy 0.3.4). And it works now.
Go to unfollow_util.py on line 809 and change:
dialog_address = "//body/div[2]/div/div[2]"
to
dialog_address = "//body/div[3]/div/div[2]"
I just tested and it works perfectly for me
dialog_address = "//body/div[3]/div/div[2]"
Deamoroth, thanks! your solution works flawlessly for me.
Go to unfollow_util.py on line 809 and change:
dialog_address = "//body/div[2]/div/div[2]"
to
dialog_address = "//body/div[3]/div/div[2]"
I just tested and it works perfectly for me
I changed it but it Isn't working for me... any suggestions?
Go to unfollow_util.py on line 809 and change:
dialog_address = "//body/div[2]/div/div[2]"
to
dialog_address = "//body/div[3]/div/div[2]"
I just tested and it works perfectly for meI changed it but it Isn't working for me... any suggestions?
I changed mine the other night and still isnt working.// Help please!!!!!
@maibaumpflanzer @Hammer11 if you did the change, you might need manually clean up the python compiled cache file (*.pyc files). Also, please post your log, if you still having issue, it might something different.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this problem still occurs, please open a new issue
@CharlesCCC Hey, I'm still having the same problem. What do I need to do to fix it? How to I manually Clean the python compiled cache file?
Most helpful comment
In unfollow_util.py
Temporary replace
dialog = browser.find_element_by_xpath(
"//div[text()='Followers' or text()='Following']/../../following-sibling::div")
with
dialog = browser.find_element_by_xpath(
"//div[contains(@class,'isgrP')]")
remember you must replace it in two places that have #find dialog otherwise it wont work