This is a Python script to automate the login process on Facebook.com. It uses Python 3.x and Selenium library to automate the process.
It uses a python module named "Selenium" and "Chrome Webdriver_Manager". Make sure you have Selenium and Webdriver_Manager installed and run this file using terminal because getpass may not work on other GUIs.
FEEL FREE TO FORK THE PROJECT AND START CONTRIBUTING. :)
If you use a Google Account or Gmail you have to allow Less Secure apps to login in Your Google Account From https://myaccount.google.com/lesssecureapps. Otherwise this will not run accordingly.
If your drivers(ChromeDriverManager or GeckoDriverManager) are not installed then You need to have a proper Internet to install the required drivers.
python modules
Selenium
Chrome Webdriver_Manager
colored
Your laptop with python 3.6.x (onwards) installed.
NOTE: Those with Linux and MacOSX would have Python installed by default, no action required.
Windows: Download the version for your laptop via https://www.python.org/downloads/
NOTES In your preferred editor, make sure indentation is set to "4 spaces".
-
Make sure you have Selenium installed in python otherwise code may fail, to install Selenium in your machine > open python in your terminal then type
pip install selenium
to install.⚠️ -
Make sure you have Chrome Webdriver_Manager installed in python otherwise code may fail, to install Chrome Webdriver_Manager in your machine > open python in your terminal then type
pip install webdriver_manager
to install.⚠️ -
Install Colored using "PIP"
pip install colored
.
- Clone or download repositiory: https://github.com/arevish/Facebook-automatic-login.git
- In source folder, run
python facebook-auto-login.py
to start program, optionally, run with--help
argument to see other runtime options.