epfl-dlab / GoogleTrendsAnchorBank

Google Trends, made easy.
MIT License
101 stars 22 forks source link

KeyError: '/m/0glpjll' #20

Closed SkipOneEBR closed 2 years ago

SkipOneEBR commented 2 years ago

I'am trying to create an anchorbank for the timeframe "2014-01-01 2014-09-27" and geo global. the script stops while removing bad queries with KeyError: '/m/0glpjll'.

File "/home/ec2-user/.local/lib/python3.7/site-packages/gtab/core.py", line 872, in create_anchorbank google_results = self._get_google_results() File "/home/ec2-user/.local/lib/python3.7/site-packages/gtab/core.py", line 387, in _get_google_results bad_idxs = self._diagnose_bads(t_ret, keywords) File "/home/ec2-user/.local/lib/python3.7/site-packages/gtab/core.py", line 213, in _diagnose_bads bad_dict = self._find_bads(gres, keywords) File "/home/ec2-user/.local/lib/python3.7/site-packages/gtab/core.py", line 204, in _find_bads ret[b][1] += 1 KeyError: '/m/0glpjll'

manoelhortaribeiro commented 2 years ago

I guess instagram (/m/0glpjll) was not that popular back then!

The solution to your problem is editing your config file config_py.json and removing /m/0glpjll from the list of HITRAFFIC words!

Best, Manoel

SkipOneEBR commented 2 years ago

thy that worked