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/')
def main(): countryInfoFilePath = 'data/countries.json' countryInfo = readJSONFile(countryInfoFilePath) tweetsAboutCountryBasePath = 'data/Tweets_About_Country/' spheresOfInfluence = calculateSpheresOfInfluence(countryInfo, tweetsAboutCountryBasePath) writeJSONFile(spheresOfInfluence, 'data/spheresOfInfluence.json')