Get cookie from CookieJar by name

后端 未结 4 1858
半阙折子戏
半阙折子戏 2021-01-03 19:46

I know that I can iterate through the cookies in a cookiejar, and this would allow me to find a cookie with a particular name - but does the CookieJar object itself have any

4条回答
  •  一整个雨季
    2021-01-03 20:33

    It's undocumented internals, but you can access cookies directly like this: cookiejar._cookies[domain][path][name]

提交回复
热议问题