diff --git a/Facebook-AutoLogin/README.md b/Facebook-AutoLogin/README.md new file mode 100644 index 0000000000..17837b4f2d --- /dev/null +++ b/Facebook-AutoLogin/README.md @@ -0,0 +1,32 @@ +# Facebook-AutoLogin + +## About This Project +This is a python script that automates the facebook login process + +## How To Run + +To run the script use following commands + +1. Get the required modules + ```bash + pip install -r requirements.txt + ``` + +2. Add your email/username in place of username@email.com + ```python + driver.find_element_by_id("email").send_keys("username@email.com") + ``` +3. Add your password in the following line + ```python + driver.find_element_by_id("pass").send_keys("password") + ``` +4. Run chromedriver.exe , located in + ```bash + Facebook-AutoLogin/chromedriver.exe + ``` + +5. Run the python script + ```python + python facebookAuto.py + ``` + diff --git a/Facebook-AutoLogin/chromedriver.exe b/Facebook-AutoLogin/chromedriver.exe new file mode 100644 index 0000000000..14e61bc967 Binary files /dev/null and b/Facebook-AutoLogin/chromedriver.exe differ diff --git a/Facebook-AutoLogin/facebookAuto.py b/Facebook-AutoLogin/facebookAuto.py new file mode 100644 index 0000000000..3a89fea59d --- /dev/null +++ b/Facebook-AutoLogin/facebookAuto.py @@ -0,0 +1,9 @@ +from selenium import webdriver + +driver = webdriver.Chrome("./chromedriver.exe") +driver.get("https://www.facebook.com") +#add email/username instead of username@email.com +driver.find_element_by_id("email").send_keys("username@email.com") +#add password +driver.find_element_by_id("pass").send_keys("password") +driver.find_element_by_name("login").click() diff --git a/Facebook-AutoLogin/requirements.txt b/Facebook-AutoLogin/requirements.txt new file mode 100644 index 0000000000..4e978e0780 --- /dev/null +++ b/Facebook-AutoLogin/requirements.txt @@ -0,0 +1,2 @@ +selenium==3.141.0 +