A simple python client for instagram internal API. using GraphQl endpoints && Python.
Scrapes any instagram profile followers and followings.
Make sure you have Python3.8
Clone the repo
git clone https://...
Install requirements
pip install -r requirements.txt
Code example:
from client.InstaC import InstaClient
# Authenticate using credentials
client = InstaClient('username', 'password')
# Get user profile
profile = client.get_username_profile('profile_username')
# Get user first 24 followings
followings = profile.followings()
print(followings)
# Get all followings
while followings['data']["user"]["edge_follow"]["page_info"]["has_next_page"]:
print()
end_cur = followings['data']['user']["edge_follow"]["page_info"]["end_cursor"]
followings = profile.followings(end_cursor=end_cur)
print(followings)
following && followers methods will return the response they get from Instagram API.
Output format:
- check if user has a specific follower or following a specific username.
- Monitor any profile new follower or followings.
- Get common follower/followings between a group of instagram profiles.
If you encounter any problem, please don't hesitate and submit an issue report.