GithubHelp home page GithubHelp logo

shimozuki / autologin-instagram-seleniumpython Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aligalipsekeroglu/autologin-instagram-seleniumpython

0.0 0.0 0.0 18 KB

Login in Instagram without writing password/username by hand

License: GNU General Public License v3.0

Python 100.00%

autologin-instagram-seleniumpython's Introduction

AutoLogin-Instagram-SeleniumPython

Login in Instagram without writing password/username by hand

Hello everyone.

First of all,before you start to use the project,you must follow the instructions:

1-You must have Python3 to use this project. I use Python 3.6 through Anaconda 5.0.0

2- In order to setup Selenium package,open command line (CTRL + R) and run cmd and run the code below: pip install selenium

3-Selenium requires a driver to interface with the chosen browser. Firefox, for example, requires geckodriver, which needs to be installed before the below examples can be run. Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin.

Failure to observe this step will give you an error selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.

Other supported browsers will have their own drivers available. Links to some of the more popular browser drivers follow.

Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads
Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
Firefox: https://github.com/mozilla/geckodriver/releases
Safari: https://webkit.org/blog/6900/webdriver-support-in-safari-10/

4- After downloading browser's file (For Chrome,Firefox etc.) and you need to give a path of this exe. file. Copy the path of that exe. file and follow the instructions:

*From the desktop, right click the Computer icon.
*Choose Properties from the context menu.
*Click the Advanced system settings link.
*Click Environment Variables. ...
*In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.

5-I use Visual Studio Code as compiler but you can use which compiler you wish. (I can advice to use Python IDLE.) I pretend you're going to use Visual Studio Code and open View-Integrated Terminal and type below and run:

python your_application_name.py

NOTE:On the first project of me (Auto Login in Twitter) which we entered Twitter without using password,we use XPaths of elements but in Instagram,when we refresh our website,id number of login url changes so we need to use something different to use that link through Python Selenium. Either we can choose class name or name selectors to use that.

Stay with Python!

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.