I'm using the Python Requests library to make HTTP requests. I obtain a cookie from the server as text. How do I turn that into a CookieJar with the cookie in it?
Well, cookielib.LWPCookieJar has load and save methods on it. Look at the format and see if it matches the native cookie format. You may well be able to load your cookie straight into a cookie jar using StringIO.
Alternatively, if Requests is using urllib2 under the hood, you could add a cookie handler to the default opener.
Putting a `Cookie` in a `CookieJar`