项目作者: jchinnam
项目描述 :
web scraping, scripting & local caching to analyze follower activity
高级语言: Python
项目地址: git://github.com/jchinnam/instagram-activity.git
instagram-activity
Scripting to analyze instagram follower/following activity. See here for implementation docs.
Usage
Download your data
- Request data download from Instagram: Accounts Center > Your information and permissions > Download your information > Download or transfer information > Select your instagram account > Some of your information > Under “Connections” choose “Followers and following”
- Instagram will send an email with a data download within a couple days. Download this zip and open it, starting with the
start_here.html
- Copy the follower and following lists into
followers.txt
and following.txt
respectively - If you don’t want to track your follower/following data in git, set those files as untracked via
git update-index --assume-unchanged path/to/file
Run script
$ python3 ./activity.py
target account name: # enter account username
Wiping the cache
This script can “cache” a list of followers, to track activity over time. To “wipe the cache”, delete the contents of followers_cache.txt
. For more on the cache, see here.
Analytics
- followers that account of interest doesn’t follow back
- accounts that don’t follow account of interest back
- unfollowers since last cache