Skip to content

Clean Code #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
22 changes: 12 additions & 10 deletions Automatic FB login/Project _ Automatic FB login.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@
from selenium.webdriver.common.keys import Keys


user_id=input('Enter User Id of your Fb Account :') # Take user id and password as input from the user
password=input('Enter the password :')
user_id = input(
"Enter User Id of your Fb Account :"
) # Take user id and password as input from the user
password = input("Enter the password :")

print(user_id)
print(password)

cd='C:\\webdrivers\\chromedriver.exe' #path to your chrome driver
cd = "C:\\webdrivers\\chromedriver.exe" # path to your chrome driver


browser= webdriver.Chrome(cd)
browser.get('https://www.facebook.com/')
browser = webdriver.Chrome(cd)
browser.get("https://www.facebook.com/")


user_box = browser.find_element_by_id("email") # For detecting the user id box
user_box.send_keys(user_id) # Enter the user id in the box
user_box = browser.find_element_by_id("email") # For detecting the user id box
user_box.send_keys(user_id) # Enter the user id in the box

password_box = browser.find_element_by_id("pass") # For detecting the password box
password_box.send_keys(password) # For detecting the password in the box
password_box = browser.find_element_by_id("pass") # For detecting the password box
password_box.send_keys(password) # For detecting the password in the box

login_box = browser.find_element_by_id("u_0_b") # For detecting the Login button
login_box = browser.find_element_by_id("u_0_b") # For detecting the Login button
login_box.click()