项目作者: jchinnam

项目描述 :
web scraping, scripting & local caching to analyze follower activity
高级语言: Python
项目地址: git://github.com/jchinnam/instagram-activity.git
创建时间: 2020-12-09T18:52:32Z
项目社区:https://github.com/jchinnam/instagram-activity

开源协议:MIT License

下载


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

  1. $ python3 ./activity.py
  2. 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