GeneralMills / pytrends

Pseudo API for Google Trends
Other
3.3k stars 823 forks source link

Timeframe didn't work? #630

Open dam2452 opened 1 month ago

dam2452 commented 1 month ago
self.pytrends = TrendReq(hl='pl-PL', tz=-60)
self.pytrends.build_payload(kw_list, cat=0, timeframe='now 4-H', geo='PL', gprop='')
        trends = self.pytrends.trending_searches(pn='poland')
        print(trends)

                                            0
0                   Aktywnie w zlobku
1                  Kris Kristofferson
2              Cracovia – Stal Mielec
3                            Szczesny
4                     Dikembe Mutombo
5           Monkey wódką w saszetkach
6              ŁKS Łódź – Wisła Płock
7                    Stal – GKS Tychy
8                 Przykładny obywatel
9            Tomasz Jakubiak nowotwór
10                            Linette
11                        John Ashton
12                     Dariusz Barski
13                        Megalopolis
14  Komendant główny policji Szymczyk
15                     Władimir Putin
16                     1 października
17                          Griezmann
18                   Aleksiej Nawalny
19                           Courtois

image

Is there something I'm doing wrong, or did I find an issue? Why are these two lists not the same? Is something wrong with me? How can I get this list from the screenshot? (I know it's in Polish, but I'm sure you can see the difference in characters :D)

dam2452 commented 1 month ago

I also tested the timeframe with these values: 'now 1-H', 'now 7-d', and I got the same result.

dam2452 commented 1 month ago

And here is the URL for the data I want to scrape: https://trends.google.com/trending?geo=PL&hl=pl&status=active&hours=4

arthii17 commented 1 month ago

Unsubscribe

On Tuesday 1 October 2024, Damian Koterba @.***> wrote:

And here is the URL for the data I want to scrape: https://trends.google.com/trending?geo=PL&hl=pl&status=active&hours=4

— Reply to this email directly, view it on GitHub https://github.com/GeneralMills/pytrends/issues/630#issuecomment-2385661555, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNBNQ2HCSSDCPEZHXQHHGLZZKJIPAVCNFSM6AAAAABPFO6IC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBVGY3DCNJVGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dam2452 commented 1 month ago

?