Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Facebook-AutoLogin/README.md
Original file line number Diff line number Diff line change
@@ -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
```

Binary file added Facebook-AutoLogin/chromedriver.exe
Binary file not shown.
9 changes: 9 additions & 0 deletions Facebook-AutoLogin/facebookAuto.py
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 2 additions & 0 deletions Facebook-AutoLogin/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
selenium==3.141.0