File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import time
2
+ import getpass
2
3
import selenium
3
4
from selenium import webdriver
4
5
from bs4 import BeautifulSoup
@@ -19,7 +20,7 @@ def get_title(driver):
19
20
get_title (driver )
20
21
21
22
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 " )
23
24
24
25
email = driver .find_element_by_name ("email" )
25
26
email .send_keys (eMail )
@@ -28,6 +29,7 @@ def get_title(driver):
28
29
29
30
login = driver .find_element_by_css_selector ("#u_0_l" )
30
31
login .click ()
32
+
31
33
print ("You are logged in now\n " )
32
34
time .sleep (5 )
33
35
@@ -38,5 +40,6 @@ def get_title(driver):
38
40
39
41
button = driver .find_element_by_xpath ('//button[@type="submit" and @class="_42ft _4jy0 _ej1 _4jy3 _4jy1 selected _51sy" and @value="1"]' )
40
42
button .click ()
43
+ time .sleep (5 )
41
44
print ("Your Status : '" + pp + "' has been uploaded!\n " )
42
45
driver .quit ()
Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
3
3
installs = [
4
- "pip3 install bs4" ,
5
- "pip3 install selenium"
4
+ "pip install bs4" ,
5
+ "pip install selenium"
6
6
]
7
7
print ("Wait for the installations, Its in progress..!!!" )
8
8
for install in installs :
You can’t perform that action at this time.
0 commit comments