-
-
Couldn't load subscription status.
- Fork 2.9k
Support curl_cffi and fix cookie handling #2434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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