GeneralMills/pytrends

related_queries and related_topics not working (infinite loop)

bnorambuenay opened this issue · 4 comments

Hi all, seems like pytrends broke again.

When trying to use functions related_queries() and/or related_topics(), execution enters in an infinite loop, without returning anything.

Below a screenshot after doing a Keyboard Interruption:
Screenshot 2023-11-29 at 16 02 13

Do you know what can be causing this error? How can we fix it?

My feeling is that the POST /explore request should post a payload (seems base64 encoded) but the python script does not, so Google detects the scraping

image

I don't understand what the browser is POSTing ....

It's an invisible recaptcha

any updates?

Yep, now the data is returning a response with 0 in it, essentially rendering pytrends useless right now