How to use the library requests (in python) after a request
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
bot = requests.session
dtheodor's answer got 95% there, except this:
session = requests.session(cookies=cookies)
For me this raises an exception saying session() does not takes arguments.
I worked around it by taking the keys/values on the cookie.get_dict and adding them manually to the session using:
session.cookies.set(cookies.keys()[n],cookies.values()[n])