Exemplo n.º 1
0
def main():
	countryInfoFilePath = 'data/countries.json'
	countryInfo = readJSONFile(countryInfoFilePath)
	datesSet = getAllDates(countryInfo)
	tweetDateStats = getTweetDateStats(datesSet, countryInfo)
	print len(datesSet)
	pprint(datesSet)
def main():
	countryInfoFilePath = 'data/countries.json'
	countryInfo = readJSONFile(countryInfoFilePath)
	combinedCompleteTweets = getCombinedTweets()
	tweetsAboutCountries = filterCountryTweets(combinedCompleteTweets, countryInfo)
	saveTweetsToFile(tweetsAboutCountries, 'data/Tweets_About_Country/')
Exemplo n.º 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')