0

referring to this C# get html from url. Error (429) unknown I am also getting the same issue. Can anyone please help. I am using GoogleTrends nuget package in C#. but unfortunately they doesn't have enough examples or explanation to use this.

anu
  • 21
  • 3
  • Error 429 explicitly states that there were too many request from the same app to the server, so this app was blocked. The answer you reference suggests using a C# API. In order to avoid paying too much for using an API, you could use web scrappers, but they will also be blocked by IP eventually. – Anonymous Jun 15 '21 at 19:05
  • if i am using webbrowser or selenium it gives data but using httprequest or webclient it says directly (429) unknown. – anu Jun 15 '21 at 19:40
  • Have you tried to pretend that you're a browser by specifying `User Agent`? https://stackoverflow.com/a/51639210/437393 – Anonymous Jun 15 '21 at 22:33
  • Recommended way of doing it in C# is `IHttpClient` rather than obsolete `WebClient` https://stackoverflow.com/a/50057689/437393 – Anonymous Jun 15 '21 at 22:36
  • this is working now. i have used httprequest with random cookies. and 429 error gone. the link https://stackoverflow.com/questions/42643808/read-json-from-url-without-download helped me in this – anu Jun 16 '21 at 13:47

0 Answers0