File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ pip-selfcheck.json
20
20
bot /facebook /config /default.json
21
21
bot /telegram /config /default.json
22
22
node_modules
23
- selenium /
23
+ selenium /
24
+ flask /new.csv
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python
2
- # -*- coding: utf-8 -*-
2
+ # -*- coding: utf-8 -*-
3
3
# @File Name: scrapper.py
4
- # @Created: 2018-04-11 02:57:12 Simon Myunggun Seo (simon.seo@nyu.edu)
4
+ # @Created: 2018-04-11 02:57:12 Simon Myunggun Seo (simon.seo@nyu.edu)
5
5
# @Updated: 2018-04-18 17:08:14 Simon Seo (simon.seo@nyu.edu)
6
6
import sys , time
7
7
sys .path .insert (0 ,'..' )
@@ -40,7 +40,7 @@ def authenticate(driver):
40
40
# Duo MFA
41
41
print ("Authenticating Duo MFA" )
42
42
driver .switch_to_frame (driver .find_element_by_id ("duo_iframe" ))
43
- bypass_button = driver .find_elements_by_class_name ("auth-button" )[1 ] # 0th is push, 1st is passcode
43
+ bypass_button = driver .find_elements_by_class_name ("auth-button" )[2 ] # 0th is push, 1st is passcode; for Arantza it's 2
44
44
bypass_button .click ()
45
45
46
46
generateOTP = duo .HOTP ()
@@ -78,6 +78,4 @@ def run(forEvery=5*60):
78
78
time .sleep (forEvery ) # 5 minutes
79
79
80
80
if __name__ == '__main__' :
81
- run (forEvery = 5 )
82
-
83
-
81
+ run ()
You can’t perform that action at this time.
0 commit comments