# -*- coding: utf-8 -*-
"""
Created on Wed Dec 02 22:55:53 2015

@author: Kolb
"""

import datetime
import gtrends

username = "******"
password = "******"

terms = ["foo", "bar", "baz"]
startDt = datetime.datetime(year=2015, month=1, day=1)
endDt = datetime.datetime(year=2015, month=2, day=1)

trends = gtrends.collectTrends(username, password, terms, startDt, endDt)
示例#2
0
terms = ["GE"]

startDt = datetime.datetime(day=1, month=10, year=2014)
endDt = datetime.datetime(day=1, month=7, year=2015)

#load stuff up
print("collecting data from "+str(startDt)+" til "+str(endDt))

stocks = collectStockData(cid, startDt, endDt, stockPath)

if os.path.isfile(trendPath):
	trends = read(trendPath)
else:
	username = raw_input("username: "******"password: "******"Waiting for Semantria. Press enter when ready to continue.")

articles = getAllArtData(artSentPath, entSent=True)

cats = ["Analyst Recommendation", "Legal", "Deals", "Product", "Stocks",
		"Partnership", "Employment"]