Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.