fanfou.py 文件源码

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

项目:pyfan 作者: raptorz 项目源码 文件源码
def __init__(self, client_key, client_secret=None, token=None, token_secret=None,
                 callback_uri=None, verifier=None, proxies=None, https=True):
        super(Fanfou, self).__init__(OAuth1Session(client_key, client_secret=client_secret,
                                                   resource_owner_key=token, resource_owner_secret=token_secret,
                                                   callback_uri=callback_uri, verifier=verifier),
                                     "https://api.fanfou.com" if https else "http://api.fanfou.com",
                                     objlist=['search', 'blocks', 'users', 'account', 'saved_searches',
                                              'photos', 'trends', 'followers', 'favorites', 'friendships',
                                              'friends', 'statuses', 'direct_messages'],
                                     postfix="json", proxies=proxies)
        self.auth._client = HttpsAuth(self.auth.auth)
        self.auth.auth = self.auth._client
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号