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
from easy_login import login
username = ""
password = ""
address = ""
obj = login(username, password, addresses)
obj.Facebook()
obj.Instagram()
obj.Twitter()
obj.Linkedin()
obj.Reddit()
|
Last Updated :
04 Jul, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...