Skip to content

Commit 8355383

Browse files
Added getpass to hide password
1 parent d098ca1 commit 8355383

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

fb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import time
2+
import getpass
23
import selenium
34
from selenium import webdriver
45
from bs4 import BeautifulSoup
@@ -19,7 +20,7 @@ def get_title(driver):
1920
get_title(driver)
2021

2122
eMail = input("Enter your Email Id or Mobile No. to Login\n")
22-
pAss = input("Enter your password\n")
23+
pAss = getpass.getpass("Enter your password\n")
2324

2425
email = driver.find_element_by_name("email")
2526
email.send_keys(eMail)
@@ -28,6 +29,7 @@ def get_title(driver):
2829

2930
login = driver.find_element_by_css_selector("#u_0_l")
3031
login.click()
32+
3133
print("You are logged in now\n")
3234
time.sleep(5)
3335

@@ -38,5 +40,6 @@ def get_title(driver):
3840

3941
button = driver.find_element_by_xpath('//button[@type="submit" and @class="_42ft _4jy0 _ej1 _4jy3 _4jy1 selected _51sy" and @value="1"]')
4042
button.click()
43+
time.sleep(5)
4144
print("Your Status : '"+pp+"' has been uploaded!\n")
4245
driver.quit()

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import subprocess
22

33
installs = [
4-
"pip3 install bs4",
5-
"pip3 install selenium"
4+
"pip install bs4",
5+
"pip install selenium"
66
]
77
print("Wait for the installations, Its in progress..!!!")
88
for install in installs:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy