Facebook Login using Python_ FB Login Example.pdf - (/)...

This preview shows page 1 - 3 out of 6 pages.

The preview shows page 1 - 3 out of 6 pages.
Facebook Login using Python: FB Login ExampleIn order to log into Facebook using Python,you need to use Selenium (a web automationtool). Selenium can automate and control abrowser and click, fill text, submit buttonsthat appear on various websites.To log in to Facebook, we will use a PythonScript that drives Selenium. The SeleniumPython Script willStep 1) Open FirefoxStep 2) Navigate to FacebookStep 3) Search & Enter the Email or Phone field & Enter PasswordStep 4) Click LoginHere is a quick video on the system will work.Note: You can configure Selenium to use any browser like Chrome, Safari, IE, etc. In thistutorial, we will use FireFoxWhat do you need to Install?Ensure you have Selenium installed on your PC. Refer thislink() to learn to installLogin To Facebook with PythonLogin To Facebook with Python(/)
SeleniumUsethis() link to install Python forSeleniumCode to Login into Facebook using Pythonfrom selenium import webdriverfrom selenium.webdriver.support.ui import WebDriverWait# Step 1) Open Firefoxbrowser = webdriver.Firefox()# Step 2) Navigate to Facebookbrowser.get("")# Step 3) Search & Enter the Email or Phone field & Enter Passwordusername = browser.find_element_by_id("email")password = browser.find_element_by_id("pass")submit

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 6 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
Madrid Metro, Metropolitana di Napoli, code line

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture