Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- cred = {
- 'sid': '******',
- 'PIN': '********'
- }
- loginurl = 'https://sis.rpi.edu/rss/twbkwbis.P_WWWLogin'
- requrl = 'https://sis.rpi.edu/rss/twbkwbis.P_GenMenu?name=bmenu.P_StuMainMnu'
- test2 = 'https://sis.rpi.edu/rss/bwskfreg.P_AltPin' #requrl and test2 are the parts of SIS i want to go to after login
- with requests.Session() as session:
- post = session.post(loginurl, data=cred)
- r = session.get(test2)
- print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement