Support curl_cffi and fix cookie handling#2434
Conversation
ADD: Implement convert_curl_cffi_cookies_to_requests function in utils.py MODIFY: Update cookie handling in data.py to use the new conversion function
|
Interesting, different approach to #2430. Have you tried it? |
yes, of course |
|
Something confuses me:
How can |
You passed a curl_cffi session, and passed it to yfinance as discussed in other issues. Then yfinance will use this session to send a request. |
|
Gotcha. Fine as a proof-of-concept but not as a release - curl_cffi session needs to be default automatic. |
|
@ValueRaider that can be accomplished fairly easily, just add the |
…rove cookie handling OPTIMIZE: Use chrome browser impersonation when creating Sessions for better compatibility MODIFY: Update related class docstrings to reflect the new dependency
|
FYI I've merged & released the other PR. As emergency over, switch further work to |
fix #2422
fix #2429