{"id":18652913,"url":"https://github.com/s045pd/tencent_danmu","last_synced_at":"2025-04-11T16:31:55.606Z","repository":{"id":37833089,"uuid":"185435492","full_name":"s045pd/Tencent_danmu","owner":"s045pd","description":"对腾讯视频弹幕快速抓取并进行简单分析,导出xlsx文件及目标全集词云图(适用于新剧分析)","archived":false,"fork":false,"pushed_at":"2022-11-22T03:48:36.000Z","size":11650,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-05T22:12:33.450Z","etag":null,"topics":[],"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/s045pd.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}},"created_at":"2019-05-07T16:00:19.000Z","updated_at":"2022-06-16T01:11:42.000Z","dependencies_parsed_at":"2022-06-23T03:05:13.795Z","dependency_job_id":null,"html_url":"https://github.com/s045pd/Tencent_danmu","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s045pd%2FTencent_danmu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s045pd%2FTencent_danmu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s045pd%2FTencent_danmu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s045pd%2FTencent_danmu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s045pd","download_url":"https://codeload.github.com/s045pd/Tencent_danmu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223472781,"owners_count":17150745,"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":[],"created_at":"2024-11-07T07:09:19.845Z","updated_at":"2024-11-07T07:09:20.315Z","avatar_url":"https://github.com/s045pd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# 腾讯弹幕抓取器\n\n首先我们来看一下它是怎么工作的吧.\n\n![useage.gif](.//media/useage.gif)\n\n\n## Feature\n\n- 异步任务抓取\n- 任意视频弹幕抓取\n- 可定制单集时长\n- XLSX生成\n- 词云生成\n- json生成\n\n## 环境安装\n\n我们通过如下命令克隆代码仓库到本地并通过pip安装依赖包\n\n```\ngit clone git@github.com:aoii103/Tencent_danmu.git\ncd Tencent_danmu\npip install -r requirements.txt\n```\n\n\n## 基础运行\n\n```\npython main.py -u [url]\n```\n\n## 命令参数\n\n```\nUsage: main.py [OPTIONS]\n\nOptions:\n  -u, --url TEXT               指定目标URL\n  -t, --max_time INTEGER       指定每集时间长度，不宜过大(针对vip视频)\n  -v, --vip                    vip默认设置15000秒\n  -c, --cons INTEGER           爬行并发数量\n  -n, --new                    不使用缓存生成\n  -e, --excel                  是否生成Excel\n  -w, --words                  是否生成词云\n  -f, --use_frequencies        是否使用词频\n  -b, --words_background TEXT  指定词云背景图\n  -d, --is_dark                是否为纯黑底色\n  -g, --graph                  是否生成分析图\n  --help                       Show this message and exit.\n```\n\n## 案例\n\n1. 指定鹦鹉图片作为背景生成《流浪地球》词云,纯黑底色。\n    ```\n    python3 main.py -u https://v.qq.com/x/cover/3fvg46217gw800n/h0030qj4fov.html -wdv  -b ~/Desktop/pr.jpg\n    ```\n\n    ![lldq.png](.//media/lldq.png)\n\n2. 以海报为颜色模板生成《亲爱的，热爱的》词云，纯黑底色。并导出excel。\n```\npython3 main.py -u https://v.qq.com/x/cover/xbd1y6fvwl3maoz/t00313mumzy.html -wefd\n```\n\n- 词云\n\n![lldq.png](.//media/qad.png)\n\n- 弹幕excel \n\n    - `upcount` 点赞数\n    - `commentid` 弹幕ID\n    - `opername` 发送人昵称\n    - `timepoint` 时间点\n    - `uservip_degree` 是否为VIP\n    - `content` 弹幕内容\n    \n![qad_excel.png](.//media/qad_excel.png)\n\n## TODO\n\n- 基础图形生成\n- 其他功能","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs045pd%2Ftencent_danmu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs045pd%2Ftencent_danmu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs045pd%2Ftencent_danmu/lists"}