Naughtygram

Main functionality for interacting with the private Instagram API

Summary

Functions

Follows a user as the user asociated with passed cookie and identity

Likes a media item as the user asociated with passed cookie and identity

Log the user in and return a cookieset which should be sent with further requests to identify the session to IG

Unfollows a user as the user asociated with passed cookie and identity

Unlikes a media item as the user asociated with passed cookie and identity

Functions

add_comment(id, text, identity, cookies)

Comment on some media

follow_user(id, identity, cookies)

Follows a user as the user asociated with passed cookie and identity.

like_media(id, identity, cookies)

Likes a media item as the user asociated with passed cookie and identity.

login_and_return_cookies(username, password, identity)

Log the user in and return a cookieset which should be sent with further requests to identify the session to IG.

Takes a username, password and identity generated with Naughtygram.Identity.create_random.

These identities contain the user agent, device guid, etc.. So should ideally be created once per user and stored for later use.

unfollow_user(id, identity, cookies)

Unfollows a user as the user asociated with passed cookie and identity.

unlike_media(id, identity, cookies)

Unlikes a media item as the user asociated with passed cookie and identity.