github lexiforest/curl_cffi v0.11.2

latest releases: v0.14.0b2, v0.14.0b1, v0.13.0...
3 months ago

Minor breaking change

The response.cookies object now contains only cookies from current request. If you are using the following patterns and hit a redirect, you will need a session.

import curl_cffi
r = curl_cffi.get("https://httpbin.org/redirect")

# ❌ Cookie from previous redirect may be lost.
do_something(r.cookies)


s = curl_cffi.Session()
r = s.get("https://httpbin.org/redirect")

# ✅ Use a session instead, to retrive all cookies in the session
do_something(s.cookies)

What's Changed

Full Changelog: v0.11.1...v0.11.2

Don't miss a new curl_cffi release

NewReleases is sending notifications on new releases.