pat310 / google-trends-api

An API layer on top of google trends
https://www.npmjs.com/package/google-trends-api
MIT License
889 stars 176 forks source link

Regions / Country breakdowns #38

Closed Dayjo closed 7 years ago

Dayjo commented 7 years ago

Hello again :)

I'm currently looking into how we might do requests using a specific region / city / county rather than the country. For instance, being able to do "England" or "Scotland" rather than limited to just "UK".

Not sure if anyone has managed to do this yet?

pat310 commented 7 years ago

Is this the fix you reference in #40?

Dayjo commented 7 years ago

No, that's more about standardising the country codes (UK vs GB).

This one is more about regions, i.e. States in the US, or Countries in the UK (England, Scotland, Wales), or Counties.

pat310 commented 7 years ago

@Dayjo For now just making users enter a country code. See https://github.com/datasets/country-codes/blob/master/data/country-codes.csv

Dayjo commented 7 years ago

@pat310 cool, I shall look into the county / region specific stuff another time anyway :)

Update looks good!