instastat
An insights toolbox for Instagram. š§
Features
- Export follower, like, and feed data.
- Public or private API login
- Output data into json or csv.
- Scriptable
Getting Started
Installation
$Ā npmĀ iĀ -GĀ instastat
Authentication
You can get started by using the interactive utility to setup a session like so, and following the onscreen instructions.
$Ā istatĀ init
This will output an istat-auth.json
(or whatever you choose to name it) in the home directory (or wherever you choose to save it).
You can use this for authentication with instastat.
If you did not save your istat-auth.json
in your home directory (~/istat-auth.json
), you must specify this to instastat using the ISTAT-AUTH
environment variable. You probably want to put this in your .bashrc
or the like.
ISTAT-AUTH=~/auth/instagram.json
Examples
Export a full list of followers to a .csv file:
$Ā istatĀ --exportĀ followersĀ --userĀ @exampleĀ --formatĀ csvĀ >Ā file.csv$Ā catĀ file.csvusername,fullname,about,followercount,followingcount@genericuser,"GenericĀ User","IĀ amĀ aĀ genericĀ user",300,320