Banned Hashtag checker (main.py)
Using this IG API by LevPasha, reads all posts of a user after inputing username
Checks and outputs if banned hashtags is found.
Also outputs the top 10 frequent hashtags of the user.
*Before use, please install the API according to the instructions below.
main.py is the Python script for the above
dict.txt contains the list of banned hashtags
Limitations:
The program can only read hashtags from captions of the post but not comments
Sample output for account tombrady:
Enter Instagram username: tombrady
===========Post code: BSO0O6QhD6v=============
{'humpday'}
Found banned hashtags:
{'humpday'}
========All posts successfully checked========
========Top 10 Hashtags=========
LFG 20
1 4
GameReady 4
LifeReady 4
ROS 4
tbtimes 4
LETSGO 3
TB1K 3
patsnation 2
MetGala 2
Followers checker (followers.py)
Outputs who are you following but is not following you back
Sample output:
Enter Instagram username: (Your username)
Number of followers: 4939
Number of followings: 1164
Number of non-followers: 175
{'miona.flower', 'pietromilillo', 'vardy7', 'miochin218', 'bruisebaby', 'chocomonaca3213', 'saysora_cosplay', 'realmadrid', 'bun_bo_bae', 'tsunsenpai', 'cxpricornium', 'vp', 'kittyy_lyn', 'cmpulisic', 'onesky2high', 'ayana1221', 'sergioramos', 'dzydzydino'
# (Output Truncated)
Instagram-API-python by LevPasha
Unofficial Instagram API to give you access to ALL Instagram features (like, follow, upload photo and video, etc)! Written in Python.
This is the Python port of https://github.com/mgp25/Instagram-API which is written in PHP. It is still a work in progress to copy all of its API endpoints.
NOTE: To successfully parse for a long time you should verify your phone number in your Instagram account. The new fake Instagram account with an unverified phone number after ~ 1-24 hours could not do any requests. All requests will be redirected to the page https://instagram.com/challenge
Installation Instructions
-
Fork/Clone/Download this repo
git clone https://github.com/lamwilton/Instagram-API-python.git
-
Navigate to the directory
cd Instagram-API-python
-
Install the dependencies
pip install -r requirements.txt
-
Modify examples\test.py with your own username and password
-
Run the test.py script (use text editor to edit the script and type in valid Instagram username/password)