Skip to main content
  • 5 years ago
Python : Facebook login using python script | 13 line of Automation Code | Ethica | Ethica Sec | EthicaS | Ethica Security

Commands used in this tutorials.
sudo pip3 install selenium
sudo pip3 install webdriver-manager

==========PYTHON SCRIPT CODE ==========
from selenium import webdriver
from getpass import getpass
from webdriver_manager.chrome import ChromeDriverManager

username = input('Pl Enter Your Facebook username: ')
passwd = getpass('Enter your Facebook password: ')

#driver = webdriver.Chrome(ChromeDriverManager().install)
driver = webdriver.Chrome(executable_path='C:/chromedriver/chromedriver')
driver.get('https://www.facebook.com')

txtUsername = driver.find_element_by_id('email')
txtUsername.send_keys(username)

txtPasswd = driver.find_element_by_id('pass')
txtPasswd.send_keys(passwd)

btnLogin = driver.find_element_by_id('u_0_b')
btnLogin.submit()
=======================================


Hash Tag
#ethica | #ethicasec | #ethicasecurity | #ethicas | #ethicalmarg | #kalilinux | #linux | #ethicalsecurity | #windows10 | #windows | | #tech | #technology | #kalilinux | #ethicalhacking #python #pythonlanguage | #ethicalhacking

how to install netmiko in windows,
how to install netmiko in linux,
how to install selenium in windows,
how to install selenium in linux,
how to install webdriver-manager in windows,
how to install webdriver-manager in linux,
how to install selenium,how to install webdriver manager,
login facebook using python,python code for login facebook
,how to login facebook account automation,
facebook automation
,facebook login python code,
python code for login fb,python automation
Be the first to comment
Add your comment

Recommended