SCPD-Scraper icon indicating copy to clipboard operation
SCPD-Scraper copied to clipboard

Two-Step Auth

Open sgfin opened this issue 12 years ago • 0 comments

With the two-step auth, it may be necessary for some users (like me) to receive a text message with a passcode in order to authenticate. Adding the following lines immediately after the password entry part of the code has Stanford send a authorization text, and prompts the user to input the code sent therein, which it uses to finish authentification before sending.

# Open the course page for the title you're looking for 
br.submit()
br.select_form(name="multifactor_send")
br.submit()
br.select_form(name="login")
br["otp"] = raw_input('Enter Code Received By Text: ')
response = br.submit()

sgfin avatar Aug 03 '13 06:08 sgfin