Code Monkey home page Code Monkey logo

Comments (4)

praburamWAPKA avatar praburamWAPKA commented on June 30, 2024

Use category number and Timestamp along with date start and end will work

from pytrends.

mobilityvalley avatar mobilityvalley commented on June 30, 2024

Many thanks @praburamWAPKA it saved my day. It works by setting the timeframe on this format "YYYY-MM-DDT00 YYYY-MM-DDT01" and cat=0 and tz=0;

I still wonder my self what is the best window in time to observe a trend (at the regional DMA level).

Let's take an example:

A trend X appeared yesterday (Day D-1).

A typical trend graph shape seems to be: flat then big peak the day of trend then going flat. It is even true for big international events, things seems to be interesting for people one day, two days at the best and then disappear in the search on Google.

image

My feeling is I can "observe" the date on the last 7 days to have a 'good' view of the trend repartition on regional level.

The pure logical way to do it would be to 'observe the data for the day it appears from D-1 T 00 to D T 00 but I get a lot of 429 error if I try this.

What folks do you think from this window (7 days) approach to analyse the data ?

Thanks by advance

from pytrends.

CyberTamilan avatar CyberTamilan commented on June 30, 2024

right now 7 days only working

from pytrends.

mobilityvalley avatar mobilityvalley commented on June 30, 2024

I make it works for last day but it seems hazardous.

Also there is a bug in this line:

elif self.geo == 'US' and resolution in ['DMA', 'CITY', 'REGION']:

You have to remove self.geo == 'US' and if you want GEO different than US, in my case FR

from pytrends.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.