Reddit.py 文件源码

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

项目:Sparcli 作者: 4Kaylum 项目源码 文件源码
def __init__(self, sparcli):
        self.sparcli = sparcli

        tokens = getTokens()['Reddit']

        # If the tokens are not set up properly, this command will fail right here
        self.reddit = praw.Reddit(
            client_id=tokens['ID'],
            client_secret=tokens['Secret'],
            user_agent=tokens['User Agent']
        )

        self.getRedditor = lambda name: self.reddit.redditor(name)
        self.getSubreddit = lambda name: self.reddit.subreddit(name)
        self.redditIcon = 'http://rawapk.com/wp-content/uploads/2016/04/Reddit-The-Official-App-Icon.png'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号