reddit.py 文件源码

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

项目:cache-my-subreddit 作者: spwilson2 项目源码 文件源码
def _authenticate(self):

        response = requests.post(
                'https://www.reddit.com/api/login',
                {'user': self._username, 'passwd': self._password},
                headers = _FAKE_HEADERS
                )

        self._cookies = response.cookies

        if self._client_id:
            self._reddit = praw.Reddit(user_agent=USER_AGENT,
                                 client_id=self._client_id,
                                 client_secret=self._client_secret,
                                 username=self._username,
                                 password=self._password)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号