Advertisement
Guest User

Untitled

a guest
May 20th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import requests
  2.  
  3. cred = {
  4. 'sid': '******',
  5. 'PIN': '********'
  6. }
  7. loginurl = 'https://sis.rpi.edu/rss/twbkwbis.P_WWWLogin'
  8. requrl = 'https://sis.rpi.edu/rss/twbkwbis.P_GenMenu?name=bmenu.P_StuMainMnu'
  9. test2 = 'https://sis.rpi.edu/rss/bwskfreg.P_AltPin' #requrl and test2 are the parts of SIS i want to go to after login
  10. with requests.Session() as session:
  11. post = session.post(loginurl, data=cred)
  12. r = session.get(test2)
  13. print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement