Should unfollow users
Failed to load desired amount of users
How do i solve this error?
session.unfollow_users(amount=25, allFollowing=True, style="FIFO", unfollow_after=172800, sleep_delay=180)
it seems like Instagram has been changing the HTML DOM
to fix this, go to unfollow_util.py and remove "/span" from line 658 & 662
example below:
if channel == "Follow":
buttons = dialog.find_elements_by_xpath(
"//div/div/span/button[text()='Follow']") **### -> remove /span**
elif channel == "Unfollow":
buttons = dialog.find_elements_by_xpath(
"//div/div/span/button[text()='Following']") **### -> remove /span**
@idpelago I have the same issue when using follow_likers, after trying to get likers from a photo it returns 0 users. Do you know if this fix will work as well? Thanks in advance
I tried that @idpelago working thanks for sharing !
Here is the solution https://github.com/timgrossmann/InstaPy/pull/2463/files
This worked for me as well, thanks for sharing @idpelago !
@idpelago Was the code changed in the latest pull? Because the code on line 658 & 662 is different for me.
Removed /span but still getting the same error.
I am also receiving the same error as mentioned above.
well actually if you pull the latest updates, everything should work
Still not working for me. Pretty sure it's related to the 12-user max follows mentioned in other issues.
@bgunsberger
I have found that you can get around that 12 user issue by simply repeating their name in your list. it's 12 per entry, but this seems to be a useable (if awkward) workaround.
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
Most helpful comment
it seems like Instagram has been changing the HTML DOM
to fix this, go to unfollow_util.py and remove "/span" from line 658 & 662
example below: