x-fran / g-trends

Google Trends API for PHP
https://tarlabs.es
MIT License
112 stars 47 forks source link

Fix for geo + country lever results #46

Closed warna720 closed 2 years ago

warna720 commented 2 years ago

Identical fix as #45 + option to see results on country level and not only city level.

Would be nice to get approved and a new release when/if everything ok!

Reproduce bug with:

use XFran\GTrends\GTrends;
$options = [ 'hl'  => 'sv', 'tz'  => -60, 'geo' => '', 'time' => 'today 5-y', 'category' => 0];
$gt = new GTrends($options);
$gt->getComparedGeo(['FOO','BAR']) # returns [], but with this patch returns result as expected.
warna720 commented 2 years ago

@x-fran Please release a new version

warna720 commented 2 years ago

@x-fran ping, please release a new version