def main()

in social-media/gather-data.py [0:0]


def main(twitter_handle):
    global twitter_api
    twitter_api = twitter.Api(consumer_key=config.CONSUMER_KEY,
                              consumer_secret=config.CONSUMER_SECRET,
                              access_token_key=config.ACCESS_TOKEN,
                              access_token_secret=config.ACCESS_TOKEN_SECRET)
    try:
        twitter_api.VerifyCredentials()
    except TwitterError as e:
        print(e)
        print(
            "Verify contents of file: {0}. See https://dev.twitter.com/oauth/overview/application-owner-access-tokens for help.".format(credentials_file))
    if os.path.isfile(output_file_name):
        raise IOError(
            "File '{0}' already exists. Won't overwrite.".format(output_file_name))
    fetch_tweets(twitter_handle)