pytrends icon indicating copy to clipboard operation
pytrends copied to clipboard

related_queries and related_topics not working (infinite loop)

Open bnorambuenay opened this issue 1 year ago • 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?

bnorambuenay avatar Nov 29 '23 18:11 bnorambuenay

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 ....

mobilityvalley avatar Nov 30 '23 08:11 mobilityvalley

It's an invisible recaptcha

Helldez avatar Dec 03 '23 20:12 Helldez

any updates?

thanhtoan1196 avatar Dec 04 '23 09:12 thanhtoan1196

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

nicktba avatar Dec 18 '23 00:12 nicktba