Usage:
- In file defines.py, fill in the required credentials
- To the the page_id, run python get_user_page_id.py
- To get the instagram_idm run get_ig_account_id.py
Usage:
- In file defines.py, uncomment line 45 [writeResponseBasicData(response)]
- Run python business_discovery.py
Output:
business_discovery.txt
The file contains the following fields:
biography
*id
*ig_id
followers_count
*follows_count
media_count
*name
profile_picture_url
username
*website
*
Usage:
- In file defines.py, comment out line 45 [writeResponseBasicData(response)]
- In file defines.py, uncomment line 46 [writeResponseMedia(response)]
- Run python get_media_and_insights.py
- In file defines.py, comment out 46 [writeResponseMedia(response)]
- In get_media_and_insights.py, uncommnet lines 69-128 [writeResponseMediaInsights(response, post), getUserMediaInsights(params, postList)]
- Run python get_media_and_insights.py
Output:
media.txt
The file contains the following fields:
- Post Number
- username
- timestamp
- comments_count
- media_type (photo/video)
- id
- media_url
media_Insights.txt
The file contains the following fields:
- Post Number
- Post ID
- Post Link
- Comments Count
- Total number of times the media object has been seen Total number of unique accounts that have seen the media object Total number of unique accounts that have saved the media object Total number of likes and comments on the media object
Usage:
- Run python get_story_insights.py
Output:
story_Insights.py
The file contains the following fields:
- Story Number
- Story ID
- Story Link
#Story objects metrics will return error code 10 if < 5
#(ERROR CODE 10) Not enough viewers for the media to show insights
Usage:
- Run python get_user_insights.py
Output:
#Insights data is not available on IG Users that have fewer than 100 followers. #Full functionality will be implemented later
Selenium webdriver script for loggin in to instagram
Usage:
- Run python account_info_bot.py
The functionality will eventually be expanded to include more useful insights and statistics. A simple and intuitive GUI will also be implemented.