GithubHelp home page GithubHelp logo

donnuven / instagramexplorerbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 48 KB

An automation bot that is meant to browse through instagram, imitate scrolling actions, be able to select an image, go through a set of images, and search up a person and repeat the same cycle again (which is to scroll and browse) before returning to the home page.

Python 100.00%

instagramexplorerbot's Introduction

Instagram Explorer Bot

Purpose summary:

The project as a whole is a form of designing an automation bot that is meant to browse through instagram, imitate scrolling actions, be able to select an image, go through a set of images, and search up a person and repeat the same cycle again (which is to scroll, browse, and select image) before returning to the home page.

Additional Note:

This project uses the facebook authentication login functionality, so if you want to login directly to instagram through the standard login process, be sure to change the code accordingly, otherwise this will use the login for facebook to get to the instagram page.

Also, this bot will only take into account of the fact that the instagram user is on a brand new account and will use instructions as accordingly. If using an older account, changing the code in def explore(self): with the correct xpath to adjust where to go will help it look things up in the explorer feed.

Dependencies:

This project utilized two different dependencies being: web chrome driver and selenium, which are required to run this project.

The link to chromedriver is here: http://chromedriver.chromium.org/

To be able to run this project:

  • Download chromedriver, unzip, move to /usr/local/bin (mac OS / linux)

To be able to run this project on windows:

  • After downloading chromedriver, in order to set up the executable path by moving it to the C drive and it will look something like this : C:\ path\ toyour\ chromedriver.

Make sure you have the chromedriver setup in your environment variable for the path in order to make sure chromedriver is setup.

To get the selenium dependency: pip install selenium or pip3 install selenium (this just depends on which version of pip you have)

Additional files

Make sure you setup a file named as secrets.py with the following variables:

username = 'your_username' password = 'your_password' person = 'person_searched_up' PATH = "C:/path/toyour/chromedriver" (this is for windows user)

The person being searched up can be changed. If there are any suggestions, feel free to add that in.

Final comments:

Feel free to add more features and/or tweaks to some of the functions to fit what the bot can do for you.

Happy coding!

instagramexplorerbot's People

Contributors

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