Git Product home page Git Product logo

instabot's Introduction

InstaBot

Note:

Dear visitors,

I would like to emphasize that the purpose of this project is solely for educational and learning purposes. It is important to note that scraping data from Instagram is illegal and against Instagram's policies. If you choose to engage in such activities, it may result in your account being blocked by Instagram.

To ensure that you stay within Instagram's guidelines, I highly recommend that you read through their policy on data scraping. This will give you a better understanding of what is and isn't allowed when it comes to scraping data from their platform.

Here's a link to Instagram's policy: https://www.instagram.com/about/legal/terms/api/

Please keep in mind that violating Instagram's policies can have serious consequences, so I urge you to use this project only for educational purposes and to respect Instagram's policies.

Thank you for your understanding and cooperation.

Install pakages

Install pipenv

pip install pipenv

Run following commands inside project dir

pipenv shell

Above command creates and activates virtualenv

To install application packages run following command

pipenv install

Run Project

main.py must be executed to run the project.ย 

python main.py

Features

  • Sending personal messages to users
  • Searching hashtags and adding Like & comment on posts

Code Details

Import InstaBot class and initialize it and set these env variables INSTA_USERNAME, INSTA_PASSWORD check example.env file for more information.

from instabot import InstaBot

bot = InstaBot()

To send personal messages to users run following method before running this method you've to set INSTA_USERNAMES env variable it contain usersnames seprated by ",".

bot.send_personal_messages()

The following method likes popular posts of the provided hashtags in INSTA_HASHTAGS.

bot.like_hashtag_posts()

The following method comments on popular posts of the provided hashtags in INSTA_HASHTAGS.

bot.comment_hashtag_posts()

The following method comments & likes on popular posts of the provided hashtags in INSTA_HASHTAGS.

bot.like_and_comment_hashtag_posts()

Use Firefox Webdriver

from instabot import InstaBot
from selenium_handler import SeleniumDriver

bot = InstaBot(selenium_driver=SeleniumDriver(driver_type='firefox'))
bot.send_personal_messages()

instabot's People

Contributors

ankit25821 avatar

Stargazers

 avatar  avatar  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.