jobs.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:jobtweets 作者: vinitshahdeo 项目源码 文件源码
def __init__(self):
        '''
        Class constructor or initialization method.
        '''

        consumer_key = '18QHFMz0zvycM2KLrTMfrafI1'
        consumer_secret = 'WNwYGKBXmbfsY7ysZXxPJ4Voa7rgtLxGocuDHbIJ1TZLShtBVF'
        access_token = '843094924299976704-GNJyLjovEGFAiOWLswFBagKxlebRQUq'
        access_token_secret = 'L39Wz6lXKSavutPqhopmNwK7egJiSrwRxVohjbqVqbQvM'


        try:

            self.auth = OAuthHandler(consumer_key, consumer_secret)

            self.auth.set_access_token(access_token, access_token_secret)

            self.api = tweepy.API(self.auth)
        except:
            print("Error: Authentication Failed")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号