Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- # Fill in your details here to be posted to the login form.
- payload = {
- 'inUserName': 'username',
- 'inUserPass': 'password'
- }
- # Use 'with' to ensure the session context is closed after use.
- with requests.Session() as s:
- p = s.post(LOGIN_URL, data=payload)
Add Comment
Please, Sign In to add comment