New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update xpath_compile.py file #6504
base: master
Are you sure you want to change the base?
Conversation
Instagram made significant changes to their XPATH structure a couple of weeks ago. This pull request summarises the fixes I've identified which works for me.
Hello @mr-ravicii I still having problems unfollowing. I got : 'user'! ~user is inaccessible I am not sure if I am doing something wrong. What should I change in my code? In the other hand, where can I find unfollow example py files? I am new here and I am not sure I am doing well. Thanks |
Ouch!! @mr-ravicii it is working with this update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update works with "unfollow" service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I end up to the same conclusion.
Thanks @mr-ravicii your are amazing man !! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes Like and following , but unfollow is still not working.
Instagram made significant changes to their XPATH structure a couple of weeks ago. This pull request summarises the fixes I've identified which works for me.
## Description
Following Instagram updated their XPATH structures a few weeks ago, these fixes enable basic functionality to follow / unfollow public and private profiles and like images of public profiles. Full disclaimer - I started using InstaPy two weeks ago, but I am familiar with the XPATH language for other web scraping projects. The script runs fine on my end with these changes.
Fixes # (issue)
Could not find followers' link for ....
Grabbed 0 usernames from 'username' ...
--> Couldn't unfollow 'user'! ~user is inaccessible
Hey! Last follow is not verified out of an unexpected
[unable to find image links when interacting with target users] (don't remember the error message)
[unable to retrieve follower of a target user] (don't remember the error message)
## How Has This Been Tested?
I tested the bot after every change to see if it fixed the error listed above. It seems some other users have successfully implemented these changes too. Full disclaimer - I have no warnings running the script now, but some people are still having issues as mentioned in the "issues" section. I suspect further changes are required to fully adjust the InstaPy module to accommodate the recent Instagram changes.