{"id":24527226,"url":"https://github.com/dolacmeo/acfunsdk","last_synced_at":"2026-03-04T17:31:06.590Z","repository":{"id":57878287,"uuid":"525301002","full_name":"dolacmeo/acfunsdk","owner":"dolacmeo","description":"acfunsdk - UNOFFICEICAL","archived":false,"fork":false,"pushed_at":"2023-09-05T03:38:27.000Z","size":37239,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T21:02:06.733Z","etag":null,"topics":["acfun","python","python3","sdk","sdk-python","unofficial"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolacmeo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-16T08:54:20.000Z","updated_at":"2025-05-11T10:48:07.000Z","dependencies_parsed_at":"2025-04-14T15:37:39.800Z","dependency_job_id":null,"html_url":"https://github.com/dolacmeo/acfunsdk","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/dolacmeo/acfunsdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolacmeo%2Facfunsdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolacmeo%2Facfunsdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolacmeo%2Facfunsdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolacmeo%2Facfunsdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolacmeo","download_url":"https://codeload.github.com/dolacmeo/acfunsdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolacmeo%2Facfunsdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30087306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["acfun","python","python3","sdk","sdk-python","unofficial"],"created_at":"2025-01-22T06:17:14.238Z","updated_at":"2026-03-04T17:31:06.565Z","avatar_url":"https://github.com/dolacmeo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# acfunsdk - **UNOFFICEICAL**\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/dolaCmeo/acfunsdk\"\u003e\n\u003cimg height=\"100\" src=\"https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/files/python-logo-only.svg\" alt=\"\"\u003e\n\u003cimg height=\"100\" src=\"https://ali-imgs.acfun.cn/kos/nlav10360/static/common/widget/header/img/acfunlogo.11a9841251f31e1a3316.svg\" alt=\"\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\nacfunsdk是 **非官方的 [AcFun弹幕视频网][acfun.cn]** Python库。\n\n\u003e 声明：`acfunsdk`是python的学习工具，并未破解任何acfun相关内容。代码完全公开，仅用于交流学习。\n\u003e 如涉及版权等相关问题，请遵守acfun相关协议及法律法规。如有bug或其他疑问，欢迎发布[issues][Issue]。\n\n- - -\n\n**Python** : `Python\u003e=3.8`， 本体请自行[下载安装][python]。\n\n### [从PyPI安装](https://pypi.org/project/acfunsdk/)\n\n```shell\npython -m pip install acfunsdk\n```\n\u003e **相关组件**\n\u003e + [x] [`acfunsdk-ws`](https://github.com/dolaCmeo/acfunsdk-ws) 为`acfunsdk`提供websocket支持\n\u003e + [x] [`acsaver`](https://github.com/dolaCmeo/acsaver) 为`acfunsdk`提供内容保存下载功能\n\u003e + [ ] [`acfunsdk-cli`](https://github.com/dolaCmeo/acfunsdk-cli) 为`acfunsdk`提供命令行支持，TUI\n- - -\n\n## 使用方法\n\n\n### 实例化获取对象\n```python\nfrom acfunsdk import Acer\n# 实例化一个Acer\nacer = Acer()\n# 登录用户(成功登录后会自动保存 '\u003c用户名\u003e.cookies')\n# 请注意保存，防止被盗\nacer.login(username='you@email.com', password='balalabalala')\n# 读取用户(读取成功登录后保存的 '\u003c用户名\u003e.cookies')\nacer.loading(username='13800138000')\n# 每日签到，领香蕉🍌\nacer.signin()\n# 通过链接直接获取内容对象\n# 目前支持 9种内容类型：\n# 视  频: https://www.acfun.cn/v/ac4741185\ndemo_video = acer.get(\"https://www.acfun.cn/v/ac4741185\")\nprint(demo_video)\n# 文  章: https://www.acfun.cn/a/ac37416587\ndemo_article = acer.get(\"https://www.acfun.cn/a/ac37416587\")\nprint(demo_article)\n# 合  集: https://www.acfun.cn/a/aa6001205\ndemo_album = acer.get(\"https://www.acfun.cn/a/aa6001205\")\nprint(demo_album)\n# 番  剧: https://www.acfun.cn/bangumi/aa5023295\ndemo_bangumi = acer.get(\"https://www.acfun.cn/bangumi/aa5023295\")\nprint(demo_bangumi)\n# 个人页: https://www.acfun.cn/u/39088\ndemo_up = acer.get(\"https://www.acfun.cn/u/39088\")\nprint(demo_up)\n# 动  态: https://www.acfun.cn/moment/am2797962\ndemo_moment = acer.get(\"https://www.acfun.cn/moment/am2797962\")\nprint(demo_moment)\n# 直  播: https://live.acfun.cn/live/378269\ndemo_live = acer.get(\"https://live.acfun.cn/live/378269\")\nprint(demo_live)\n# 分  享: https://m.acfun.cn/v/?ac=37086357\ndemo_share = acer.get(\"https://m.acfun.cn/v/?ac=37086357\")\nprint(demo_share)\n# 涂鸦(单页): https://hd.acfun.cn/doodle/knNWmnco.html\ndemo_doodle = acer.get(\"https://hd.acfun.cn/doodle/knNWmnco.html\")\nprint(demo_doodle)\n```\n\n- - -\n\n\n\u003cdetails\u003e\n\u003csummary\u003e依赖库\u003c/summary\u003e\n\n**依赖: 包含在 `requirements.txt` 中**\n\n+ [`httpx`](https://pypi.org/project/httpx/)`\u003e=0.23`\n+ [`lxml`](https://pypi.org/project/lxml/)`\u003e=4`\n+ [`beautifulsoup4`](https://pypi.org/project/beautifulsoup4/)`\u003e=4`\n\n\u003c/details\u003e\n\n- - - \n## 参考 \u0026 鸣谢\n\n+ [AcFun 助手](https://github.com/niuchaobo/acfun-helper) 是一个适用于 AcFun（ acfun.cn ） 的浏览器插件。\n+ [AcFunDanmaku](https://github.com/wpscott/AcFunDanmaku) 是用C# 和 .Net 6编写的AcFun直播弹幕工具。\n+ [实现自己的AcFun直播弹幕姬](https://www.acfun.cn/a/ac16695813) [@財布士醬](https://www.acfun.cn/u/311509)\n+ QQ频道“AcFun开源⑨课”\n+ 使用 [Poetry](https://python-poetry.org/) 构建\n\n\u003e Special Thanks:\n\u003e \u003cp align=\"center\"\u003e\u003cstrong\u003eJetBrains Licenses for Open Source Development - Community Support\u003c/strong\u003e\u003c/p\u003e\n\u003e \u003cp align=\"center\"\u003e\u003ca href=\"https://jb.gg/OpenSourceSupport\" target=\"_blank\"\u003e\n\u003e \u003cimg height=\"100\" src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg\" alt=\"\"\u003e\u003cimg height=\"100\" src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/PyCharm.svg\" alt=\"\"\u003e\n\u003e \u003c/a\u003e\u003c/p\u003e\n\n- - - \n\n## About Me\n\n[![ac彩娘-阿部高和](https://tx-free-imgs2.acfun.cn/kimg/bs2/zt-image-host/ChQwODliOGVhYzRjMTBmOGM0ZWY1ZRCIzNcv.gif)][dolacfun]\n[♂ 整点大香蕉🍌][acfunsdk_page]\n\u003cimg alt=\"AcFunCard\" align=\"right\" src=\"https://discovery.sunness.dev/39088\"\u003e\n\n- - - \n\n[dolacfun]: https://www.acfun.cn/u/39088\n[acfunsdk_page]: https://www.acfun.cn/a/ac37416587\n\n[acfun.cn]: https://www.acfun.cn/\n[Issue]: https://github.com/dolaCmeo/acfunsdk/issues\n[python]: https://www.python.org/downloads/\n[venv]: https://docs.python.org/zh-cn/3.8/library/venv.html\n\n[acer]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/acer_demo.py\n[index]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/index_reader.py\n[channel]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/channel_reader.py\n[search]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/seach_reader.py\n\n[bangumi]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/bangumi_demo.py\n[video]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/video_demo.py\n[article]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/article_demo.py\n[album]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/album_demo.py\n[member]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/member_demo.py\n[moment]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/moment_demo.py\n[live]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/live_demo.py\n\n[saver]: https://github.com/dolaCmeo/acfunsdk/blob/main/examples/AcSaver_demo.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolacmeo%2Facfunsdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolacmeo%2Facfunsdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolacmeo%2Facfunsdk/lists"}