pstadler / ticker.sh

Real-time stock tickers from the command-line.
MIT License
511 stars 87 forks source link

Fix cookie setting by using a Yahoo Finance url that doesn't redirect to a consent page #42

Closed giuli007 closed 1 year ago

giuli007 commented 1 year ago

Change the url used to get the cookie from finance.yahoo.com to fc.yahoo.com

This works around the fact that the "finance" subdomain redirects to a consent page (https://guce.yahoo.com/consent) and doesn't allow curl to properly set the cookie needed in subsequent steps


Fixes https://github.com/pstadler/ticker.sh/issues/37 and https://github.com/pstadler/ticker.sh/issues/33 A more detailed explanation of the problem and how I found this solution/workaround can be found at https://github.com/pstadler/ticker.sh/issues/37#issuecomment-1596979021

pstadler commented 1 year ago

thanks 🍻 !

giuli007 commented 1 year ago

thanks 🍻 !

Thank you for the fast turnaround!