How to automatic log in into facebook
from selenium import webdriverfrom selenium.webdriver.support.ui import WebDriverWait
# download chromedriver from the link below# https://sites.google.com/a/chromium.org/chromedriver/homedriver = webdriver.Chrome("/home/ikraminf/web-apps/chromedriver") # path of the chromedriver or chromedriver.exedriver.maximize_window()# Step 2) Navigate to Facebookdriver.get("http://www.facebook.com")# Step 3) Search & Enter the Email or Phone field & Enter Passwordusername = driver.find_element_by_id("email")password = driver.find_element_by_id("pass")submit = driver.find_element_by_id("u_0_b")
username.send_keys("your email or phone number") # as like xyz@gmail.compassword.send_keys("your password") # as like 1234567# Step 4) Click Loginsubmit.click()
# Reference : Falcon Infomatic
How to automatic log in into facebook
Reviewed by Ikram
on
9/24/2020 12:25:00 PM
Rating:

No comments: