def get_tweets_text_and_time(filename): request1 = json_helper.JsonRequestSingle( config.TWEET_DICTIONARY_DATE_TIME_KEY, config.TWEET_JSON_DATE_TIME_LOCATION) request2 = json_helper.JsonRequestSingle(config.TWEET_DICTIONARY_TEXT_KEY, config.TWEET_JSON_TEXT_LOCATION) return json_helper.parse_tweets(filename, [request1, request2])
def get_tweets_hashtags_and_time(filename): request1 = json_helper.JsonRequestSingle(config.TWEET_DICTIONARY_DATE_TIME_KEY, config.TWEET_JSON_DATE_TIME_LOCATION) request2 = json_helper \ .JsonRequestList(config.TWEET_DICTIONARY_HASHTAGS_KEY, config.TWEET_JSON_HASHTAGS_LOCATION, require_lower_case=True, require_ascii_format=True, require_unique_elements=True) return json_helper.parse_tweets(filename, [request1, request2])
def get_tweets_hashtags_and_time(filename): request1 = json_helper.JsonRequestSingle( config.TWEET_DICTIONARY_DATE_TIME_KEY, config.TWEET_JSON_DATE_TIME_LOCATION) request2 = json_helper \ .JsonRequestList(config.TWEET_DICTIONARY_HASHTAGS_KEY, config.TWEET_JSON_HASHTAGS_LOCATION, require_lower_case=True, require_ascii_format=True, require_unique_elements=True) return json_helper.parse_tweets(filename, [request1, request2])
def get_tweets_text_and_time(filename): request1 = json_helper.JsonRequestSingle(config.TWEET_DICTIONARY_DATE_TIME_KEY, config.TWEET_JSON_DATE_TIME_LOCATION) request2 = json_helper.JsonRequestSingle(config.TWEET_DICTIONARY_TEXT_KEY, config.TWEET_JSON_TEXT_LOCATION) return json_helper.parse_tweets(filename, [request1, request2])