Git Product home page Git Product logo

instabot-4's Introduction

instaBot

A bot which follows your commands for Instagram.

Name:Instabot-4
Version:1.0
Description:A terminal bot app using python that allows you to use the various features of the Instagram API and also deals with data science by determining number of images shared with a particular hash tag and plotting it using "matplotlib".
Author Name:Simran Raj
Author Url:http://www.simranraj.com

Objectives:

  • To Like a post of your choice of the user.
  • To Comment on a post(not more than 200 words) of your choice of the user.
  • To Search a word in the comment in the post of your choice of the user.
  • To Get a list of comments on post of your choice of the user.
  • To Get a list of likes on post of your choice of the user.
  • To Delete the negative comment from a post of your choice of the user.
  • To Get your own recent post.
  • To Get the recent post of a user by username.
  • To Get your recently liked media.
  • To determine images shared with a particular hash tag and plot using matplotlib.

Generate your own APP_ACCESS_TOKEN

1.Goto https://instagram.com/developer
2.Click on Manage Clients tab in the header.
3.If not already logged in, login in using your existing instagram account.
4.Click on Register a new client, the green colored button just below the header on the right.
5.Fill out the form with the valid url in the Valid redirect URIs field.
6.Click on register.
7.Uncheck the “Disable implicit OAuth” under under the security tab.
8.Copy the client-id.
9.HIT (Replace client Id,redirect-url and response-token)
https://api.instagram.com/oauth/authorize/?
client_id=CLIENT-ID
&redirect_uri=REDIRECT-URI
&response_type=token
&scope=basic+public_content+likes+comments
10.You will be redirected to:
http://your-redirect-uri/#access_token=ACCESS-TOKEN
11.Copy the ACCESS-TOKEN at a safe place.

Python setup

To properly use this python-modules some additional libraries have to be installed beforehand. This can be easily accomplished with the commands below.

pip install virtual_env
source bin/activate
pip install requests
pip install termcolor
pip install urlib
pip install matplotlib
pip install TextBlob

Run

To run the app type the command given below.

python instaBot.py

instabot-4's People

Contributors

simran88 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.