Putting a `Cookie` in a `CookieJar`

前端 未结 10 1459
谎友^
谎友^ 2020-11-30 01:45

I\'m using the new 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

10条回答
  •  一生所求
    2020-11-30 02:23

    Try this site: Voidspace article

    Over the years I have found voidspace to be extremely useful for doing this kind of stuff. Hope I helped, although I'm quite a dunce. The code is available at Voidspace Recipes as source code .py although the download file is a ".py-" file.

提交回复
热议问题