Skip to content

Commit f6b0ee6

Browse files
Merge pull request avinashkranjan#160 from antrikshmisri/facebook-auto
Facebook Auto Login
2 parents 6deabad + a9ddde8 commit f6b0ee6

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

Facebook-AutoLogin/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Facebook-AutoLogin
2+
3+
## About This Project
4+
This is a python script that automates the facebook login process
5+
6+
## How To Run
7+
8+
To run the script use following commands
9+
10+
1. Get the required modules
11+
```bash
12+
pip install -r requirements.txt
13+
```
14+
15+
2. Add your email/username in place of username@email.com
16+
```python
17+
driver.find_element_by_id("email").send_keys("username@email.com")
18+
```
19+
3. Add your password in the following line
20+
```python
21+
driver.find_element_by_id("pass").send_keys("password")
22+
```
23+
4. Run chromedriver.exe , located in
24+
```bash
25+
Facebook-AutoLogin/chromedriver.exe
26+
```
27+
28+
5. Run the python script
29+
```python
30+
python facebookAuto.py
31+
```
32+
9.63 MB
Binary file not shown.

Facebook-AutoLogin/facebookAuto.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from selenium import webdriver
2+
3+
driver = webdriver.Chrome("./chromedriver.exe")
4+
driver.get("https://www.facebook.com")
5+
#add email/username instead of username@email.com
6+
driver.find_element_by_id("email").send_keys("username@email.com")
7+
#add password
8+
driver.find_element_by_id("pass").send_keys("password")
9+
driver.find_element_by_name("login").click()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
selenium==3.141.0
2+

0 commit comments

Comments
 (0)