payload = {'inUserName': 'username', 'inUserPass': 'password'}
with requests.Session() as s:
    p = s.post('LOGIN_URL', data=payload)
print(p.text)
r = s.get('A protected web page url')
print(r.text)
How to "log in" to a website using Python's Requests module?