用于与reddit api交互的轻量级包装器
reddit_p的Python项目详细描述
玩具python包装器,我正在使用[官方reddit api](http://www.reddit.com/dev/api) 它不打算与[praw]竞争,也不像[praw]那样全面(https://praw.readthedocs.org/en/latest/)[PRAW]
用法
按照api的结构,包被分解为多个模块。 简要概述:
账户
登录、创建和删除用户帐户:
client = user_login('your_username', 'your_password') your_overview = current_account_overview(client)
用户
检索给定reddit帐户的活动,选项包括:概述、提交、评论和喜欢:
user_submissions = get_user_activity('submitted', 'valid_username', 'top', 100, 'year')
亚红色
检索有关已登录客户端的给定或所有子目录的信息。更多信息:
python_overview = about_subreddit('python')