A simple library with actions that instagram API don't have.
Install via Package Managers
$ npm i instagood
First of all, if you want to use instagood, you need to get some infos manually (at this moment):
- Login to instagram web
- Open devtools
- Enable log requests (network tab)
- Follow someone
- In network tab, open 'follow/' request log
- Get what you need in 'Request Headers' section
sessionid (note that sessionid is inside a parameter string, so copy the code after
const instagood = ;
Instance a new user (for csrftoken and sessionid see Tutorial section)
Note: user must be the logged one (the one who you got csrftoken and sessionid). If you logout, your csrftoken and sessionid will be removed from instagram auth.
const user = 'user' 'csrftoken' 'sessionid';
Get user information
Get user followers
Get user following
Follow someone (in this case, me)
Like any media
Unlike any media
Comment any media
Problems, bugs or questions?
Open a new issue.
- Improve 'Usage' section
- Implement more methods (list all medias from the user, sugest)
- Write some tests