def initialize_twitter_api(config: ConfigParser):
    '\n    Do authentication and return read-to-use\n    twitter api object\n    '
    twitter_config = config['twitter']
    auth = tweepy.OAuthHandler(twitter_config.get('consumer_key'), twitter_config.get('consumer_secret'))
    auth.set_access_token(twitter_config.get('access_token'), twitter_config.get('access_secret'))
    api = tweepy.API(auth)
    return api
Do authentication and return read-to-use
twitter api object
def initialize_twitter_api(config: ConfigParser):
    '\n    Do authentication and return read-to-use\n    twitter api object\n    '
    twitter_config = config['twitter']
    auth = tweepy.OAuthHandler(twitter_config.get('consumer_key'), twitter_config.get('consumer_secret'))
    auth.set_access_token(twitter_config.get('access_token'), twitter_config.get('access_secret'))
    api = tweepy.API(auth)
    return api