adrianmichel / yloader

Free stock quotes downloader
http://www.yloader.com
41 stars 18 forks source link

problem downloading data from Yahoo #21

Open abnbtota111 opened 1 month ago

abnbtota111 commented 1 month ago

There is a problem downloading data from Yahoo - error 6666666666666666

ZeroAssoluto996 commented 1 month ago

MeToo

VitaliPP commented 1 month ago

MeToo

Rahmengo commented 4 weeks ago

I have the same issue

Rahmengo commented 3 weeks ago

As of 2024-06-13 I am still getting the HTTP response error429. Would be great if someone can point me in the right direction on how to fix this and I will give it a try myself.

abnbtota111 commented 3 weeks ago

Hello, thank you for contacting me. I don’t know if this will help you, but I will try.I made a link to download data for a company. For me, it is tiring. I will need a link for each company, but it may be suitable for you in modifying some points in the application. I hope I helped you, good luck. This is the link :

https://query1.finance.yahoo.com/v7/finance/download/gme?period1

On Friday, June 14, 2024 at 01:05:48 AM GMT+3, Rahmengo ***@***.***> wrote:  

As of 2024-06-13 I am still getting the HTTP response error429. Would be great if someone can point me in the right direction on how to fix this and I will give it a try myself.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

adilpr commented 2 weeks ago

As of 2024-06-13 I am still getting the HTTP response error429. Would be great if someone can point me in the right direction on how to fix this and I will give it a try myself.

https://stackoverflow.com/questions/78111453/yahoo-finance-api-file-get-contents-429-too-many-requests

BoulderLou commented 1 week ago

A quick attempt to add a USER_AGENT to determine if it actually fixes the issue.

in httprequest.cpp change this line: handleCurlResult(curl_easy_setopt(m_curl, CURLOPT_USERAGENT, userAgent.c_str()), "curl_easy_setopt( CURLOPT_USERAGENT )");

to this: handleCurlResult(curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "Mozilla/4.0;"), "curl_easy_setopt( CURLOPT_USERAGENT )");

and it now downloads the Yahoo data. Screenshot 2024-06-22 095834

I'll need to go back to make the proper modifications in the HTTPRequestBase class.

adilpr commented 1 week ago

Can you share with us a link of the working file. Thanks.

Also, a request in yloader settings -- data sources - can you please add "initial delay between requests (milliseconds) ... and user could, for example input, 1000. this would reduce load on yahoo servers. If you need further inputs from my end let me know. Thanks.

BoulderLou commented 1 week ago

The executable files for the temporary fix are located in the link below along with some others that you will not need, like an old log file from the Release/x64 directory.

Built with Visual Studio 2019 Release/x64 directory https://github.com/BoulderLou/YloaderTmpFix20240622.git

abnbtota111 commented 1 week ago

A quick attempt to add a USER_AGENT to determine if it actually fixes the issue.

in httprequest.h change this line: handleCurlResult(curl_easy_setopt(m_curl, CURLOPT_USERAGENT, userAgent.c_str()), "curl_easy_setopt( CURLOPT_USERAGENT )");

to this: handleCurlResult(curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "Mozilla/4.0;"), "curl_easy_setopt( CURLOPT_USERAGENT )");

and it now downloads the Yahoo data. Screenshot 2024-06-22 095834

I'll need to go back to make the proper modifications in the HTTPRequestBase class.


Thank you for helping us,,, Can you explain how to find this? in httprequest.h