URL2 = 'login submission URL'
session = requests.Session()
r = session.get(URL1)
r2 = session.post(URL2, data='username and password data payload')
Using requests module, how to handle 'set-cookie' in request response?