Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pytrends
- from pytrends.request import TrendReq
- import json
- from pprint import pprint
- username = ''#raw_input('Username: ')
- password = ''
- pytrends = TrendReq(username, password, custom_useragent=None)
- topthirty = pytrends.top30in30()
- #print json.dumps(topthirty)
- """
- with open('jsondump.json', 'w') as f:
- f.write(json.dumps(topthirty))
- """
- with open('jsondump.json') as r:
- z = json.load(r)
- print z['weeksList'][1]#[20160923]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement