{"id":13849462,"url":"https://github.com/linsir/doubanrobot","last_synced_at":"2025-04-12T00:40:54.727Z","repository":{"id":24400245,"uuid":"27800577","full_name":"linsir/doubanrobot","owner":"linsir","description":"A simple robot for Douban.com","archived":false,"fork":false,"pushed_at":"2019-03-29T03:16:14.000Z","size":103,"stargazers_count":33,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T20:21:52.908Z","etag":null,"topics":["douban","robot"],"latest_commit_sha":null,"homepage":"https://linsir.org/post/python-douban-robot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linsir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-10T03:34:05.000Z","updated_at":"2023-05-03T15:29:58.000Z","dependencies_parsed_at":"2022-08-22T07:50:08.622Z","dependency_job_id":null,"html_url":"https://github.com/linsir/doubanrobot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Fdoubanrobot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Fdoubanrobot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Fdoubanrobot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Fdoubanrobot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linsir","download_url":"https://codeload.github.com/linsir/doubanrobot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501960,"owners_count":21114681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["douban","robot"],"created_at":"2024-08-04T19:01:18.733Z","updated_at":"2025-04-12T00:40:54.705Z","avatar_url":"https://github.com/linsir.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# doubanrobot\n\nA simple robot for douban.com\n\n## Usage\n\n[Examples](examples.py)\n\n## 功能概览\n\n### 登录\n\n    import doubanrobot\n\n    email = 'xxx@qq.com'\n    password = 'password'\n\n    auth = doubanrobot.Auth(email, password)\n\n### 个人相关接口\n\n    people = doubanrobot.People(auth)\n    \n- 修改简介\n`people.edit_intro(\"i just changed my douban intro\")`  \n\n- 发状态\n`people.talk_status(\"hhhhhh\")`\n\n- 发带图片状态\n`people.send_image(\"test.jpg\", \"hhhhhh\")`\n\n- 发豆邮 (对同一人首次发豆邮后该endpoint失效，以后需要使用回复豆邮）\n`people.send_doumail(\"66902522\", 'Hallo, linsir.')` \n    \n- 回复豆邮\n`people.reply_doumail(\"66902522\", 'Hallo again, linsir.')` \n    \n- 获取关注的人\n`print(people.get_contacts_list())`\n\n- 获取关注我的人\nprint(people.get_contacts_rlist())\n\n- 取消关注\n`people.remove_contact(\"66902522\")`\n\n- 关注\n`people.add_contact(\"66902522\")`\n\n- 获取黑名单\n`print(people.get_blacklist())`\n\n- 添加到黑名单\n`people.add_to_blacklist(\"76326966\")`\n\n- 移出黑名单\n`people.remove_from_blacklist(\"76326966\")`\n\n### 小组相关接口\n\n    group = doubanrobot.Group(app)\n\n- 获取加入的小组\n`print(group.get_joined_groups())`\n\n- 加入不需要验证的组\n`group.join_group(\"TurboGears\")`\n\n- 加入需要验证的组\n`group.join_group(\"343477\", \"申请加入！！！\")`\n\n- 退出小组\n`group.quit_group(\"TurboGears\")`\n\n- 我发起的帖子列表\n`print(group.get_my_publish_topics(reply=False))`\n\n- 我回复的帖子列表及回应数\n`print(group.get_my_reply_topics(reply=False))`\n\n- 删除我发起的帖子（会删除所有评论）\n`group.delete_my_topic(\"129875286\", 155)`\n\n- 获取帖子评论列表\n`group.get_other_comments_list(\"41603339\", 155)`\n\n- 获取帖子我回应评论列表\n`group.get_reply_comments_list(\"81705524\")`\n\n- 发表新帖子\n`group.new_topic(\"centos\", \"test\", \"hahah.\")`\n\n- 抢沙发\n`group.sofa(\"CentOS\",['aaaa', 'bbbb', 'cccc'])`\n\n- 顶帖子\n`group.topics_up([\"129875286\"],['xxx', 'yyy', 'zzz'])`\n\n- 删除所有回应的评论\n`group.delete_reply_topic_comments()`\n\n- 删除所有发布的帖子\n`group.delete_my_publish_topics`\n\n## 更多\n\n验证码破解及更多接口请自己抓包分析。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsir%2Fdoubanrobot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinsir%2Fdoubanrobot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsir%2Fdoubanrobot/lists"}