Open In App

Python Easy-Login Module

Improve
Improve
Like Article
Like
Save
Share
Report

Easy-Login module is that library of Python which helps you to login in your social accounts like Facebook, Instagram, Twitter, Linkedin, Reddit etc through Python without opening the sites manually . 

Installation

This module does not come built-in with Python. You need to install it externally. To install this module type the below command in the terminal.

pip install easy-login

It will automatically login your account in a separate window using chrome  webdriver and will take you over the home page of that website

Web Drivers 
Selenium requires a web driver to interface with the chosen browser. Web drivers is a package to interact with a web browser. It interacts with the web browser or a remote web server through a wire protocol which is common to all. You can check out and install the web drivers of your browser choice.
 

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

Username and password must be of same account which you have to login and must be in string format. Address must be in string format with forward slash(/) like  C:/Users/user1/chromedriver_win32/chromedriver .

Here is the demonstration for this module : 
 

python3




# importing the module
from easy_login import login
 
# initializing the username and password
username = ""
password = ""
 
# initializing the address of chrome web driver
address = ""
 
# creating an object of login
obj = login(username, password, addresses)
 
# calling the account in which we want to login
obj.Facebook()
obj.Instagram()
obj.Twitter()
obj.Linkedin()
obj.Reddit()



Last Updated : 04 Jul, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads