kaflesudip / instagram-unofficial

An unofficial Instagram API that enables likes, posts and comments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

instagram-unofficial

The official instagram API only allows POST requests for only specific agencies. This is an unofficial Instagram API that enables likes, posts and comments. The library uses selenium and headless browser to automate the processes.

Under Construction:

Register the API

from selenium import webdriver

username = "Your Instagram Username"
password = "Your Instagram Password"

driver = webdriver.Firefox()
api = register_driver(driver=driver, username=username, password=password)

Post, Like, Follow, Unfollow

api.unfollow_user(user_id)  # unfollows user with given id.
api.follow_user(user_id)  # follows user with given id.
api.create_media_comment(media_id, text)  # Adds the text as comment on the given media id
api.like_media(media_id)  # Likes the given media

Disclaimer

This is an unofficial Instagram bot. Using this may violate Instagram's TOS.

About

An unofficial Instagram API that enables likes, posts and comments.

License:GNU General Public License v2.0