Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mr-ravicii
Copy link

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.

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.
@codevakza
Copy link

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

@codevakza
Copy link

Ouch!! @mr-ravicii it is working with this update.
I just tried and the unfollow works fine :).
Thank you very much!!

Copy link

@codevakza codevakza left a 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

Copy link

@HansDaigle HansDaigle left a 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.

@Remi13Git
Copy link

Thanks @mr-ravicii your are amazing man !!

Copy link

@benybens benybens left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants