File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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 ()
Original file line number Diff line number Diff line change
1
+ selenium == 3.141.0
2
+
You can’t perform that action at this time.
0 commit comments