Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import os
- import requests
- #This URL will be the URL that your login form points to with the "action" tag.
- POST = 'https://txapps.texas.gov/txapp/txdps/ltc/login.do'
- #This URL is the page you actually want to pull down with requests.
- REQUEST = 'https://txapps.texas.gov/txapp/txdps/ltc/options.do'
- # Set environment variables
- #os.environ['dlID'] = 'ID_HERE'
- #os.environ['dob'] = 'DOB_HERE'
- payload = {
- 'dlID': 'ID_HERE',
- 'dob': 'DOB_HERE'
- }
- with requests.Session() as session:
- post = session.post(POST, data=payload)
- r = session.get(REQUEST)
- print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment