Hey everyone! I'm trying to gather Google Trends data for about 50 different cryptocurrencies. I've attempted to run a Python script, but I keep running into error code 429. I'm looking for historical data, ideally daily, for as many years as possible, starting from 2017. I've tried connecting the data myself and even added delays to my requests, but no luck. Does anyone have a working Python script that can download Google Trends data for multiple years and multiple search terms, especially one that would work well in 2025?
2 Answers
I totally get your struggle with the 429 error! You might want to check if you're using the right tools. Google prefers something that can handle JavaScript, so consider switching to Playwright version 1.39 with Firefox. If you've got a requests script, you can run it through ChatGPT with a note saying "I want to use Playwright" and it'll adapt it for you. Trust me, it makes a difference!
Hey Curiousmonkey555! That error 429 can be a real pain, huh? One solution that worked for me was using the `pytrends` library. Just remember to pace your requests so you don't overwhelm Google or they might block you. Also, try splitting your requests into smaller batches, like 10 coins at a time instead of all 50. This way, you’ll have better luck avoiding those dreaded errors!
> treendly.com
Looks like a subtle marketing pitch to me, just saying!