<gh_stars>0
from twython import Twython


class TwitterConnector:

    def __init__(self, config: dict):
        self.APP_KEY = config['key']
        self.APP_SECRET = config['secret']
        self.ACCESS_TOKEN = config['access-token']
        self.ACCESS_SECRET_TOKEN = config['access-token-secret']
        self.instance = Twython(self.APP_KEY,
                                self.APP_SECRET,
                                self.ACCESS_TOKEN,
                                self.ACCESS_SECRET_TOKEN)


from twython import Twython


class TwitterConnector:

    def __init__(self, config: dict):
        self.APP_KEY = config['key']
        self.APP_SECRET = config['secret']
        self.ACCESS_TOKEN = config['access-token']
        self.ACCESS_SECRET_TOKEN = config['access-token-secret']
        self.instance = Twython(self.APP_KEY,
                                self.APP_SECRET,
                                self.ACCESS_TOKEN,
                                self.ACCESS_SECRET_TOKEN)