foxadb / yahoo-finance

C++ library to get stock data from Yahoo Finance
MIT License
53 stars 21 forks source link

yahoo-finance-cookie file now only has comment lines #11

Closed sjlGH closed 2 years ago

sjlGH commented 2 years ago

The package used to work perfect. But recently, the cookie file generated is sort of empty. In the yahoo-finance-cookie file, I only see the comment lines:

Netscape HTTP Cookie File

https://curl.haxx.se/docs/http-cookies.html

This file was generated by libcurl! Edit at your own risk.

Anyone is having the same issue?

By the way, the function that I stepped into is: getYahooCrumbCookie(std::string url, std::string crumb, std::string cookie) the url that I used is: https://finance.yahoo.com/quote/IBM/?p=IBM

foxadb commented 2 years ago

Hello @sjlGH

This issue might be related to the fact that Yahoo Finance API doesn't require the crumbstore cookie mechanism anymore to fetch stock data.

The getYahooCrumbCookie function you have mentioned has been removed since I have merged https://github.com/foxadb/yahoo-finance/pull/10

Hope it'll fix your issue :pray:

sjlGH commented 2 years ago

Great! Thanks @foxadb . Yes, it does.