コード例 #1
0
ファイル: tweets_by_dates.py プロジェクト: shouvikmani/IACD
def main():
	countryInfoFilePath = 'data/countries.json'
	countryInfo = readJSONFile(countryInfoFilePath)
	datesSet = getAllDates(countryInfo)
	tweetDateStats = getTweetDateStats(datesSet, countryInfo)
	print len(datesSet)
	pprint(datesSet)
コード例 #2
0
def main():
	countryInfoFilePath = 'data/countries.json'
	countryInfo = readJSONFile(countryInfoFilePath)
	combinedCompleteTweets = getCombinedTweets()
	tweetsAboutCountries = filterCountryTweets(combinedCompleteTweets, countryInfo)
	saveTweetsToFile(tweetsAboutCountries, 'data/Tweets_About_Country/')
コード例 #3
0
def main():
	countryInfoFilePath = 'data/countries.json'
	countryInfo = readJSONFile(countryInfoFilePath)
	tweetsAboutCountryBasePath = 'data/Tweets_About_Country/'
	spheresOfInfluence = calculateSpheresOfInfluence(countryInfo, tweetsAboutCountryBasePath)
	writeJSONFile(spheresOfInfluence, 'data/spheresOfInfluence.json')