[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-HA6Bots--TikTok-Compilation-Video-Generator":3,"tool-HA6Bots--TikTok-Compilation-Video-Generator":64},[4,18,26,36,48,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":17},6121,"gemini-cli","google-gemini\u002Fgemini-cli","gemini-cli 是一款由谷歌推出的开源 AI 命令行工具，它将强大的 Gemini 大模型能力直接集成到用户的终端环境中。对于习惯在命令行工作的开发者而言，它提供了一条从输入提示词到获取模型响应的最短路径，无需切换窗口即可享受智能辅助。\n\n这款工具主要解决了开发过程中频繁上下文切换的痛点，让用户能在熟悉的终端界面内直接完成代码理解、生成、调试以及自动化运维任务。无论是查询大型代码库、根据草图生成应用，还是执行复杂的 Git 操作，gemini-cli 都能通过自然语言指令高效处理。\n\n它特别适合广大软件工程师、DevOps 人员及技术研究人员使用。其核心亮点包括支持高达 100 万 token 的超长上下文窗口，具备出色的逻辑推理能力；内置 Google 搜索、文件操作及 Shell 命令执行等实用工具；更独特的是，它支持 MCP（模型上下文协议），允许用户灵活扩展自定义集成，连接如图像生成等外部能力。此外，个人谷歌账号即可享受免费的额度支持，且项目基于 Apache 2.0 协议完全开源，是提升终端工作效率的理想助手。",100752,2,"2026-04-10T01:20:03",[13,14,15,16],"插件","Agent","图像","开发框架","ready",{"id":19,"name":20,"github_repo":21,"description_zh":22,"stars":23,"difficulty_score":10,"last_commit_at":24,"category_tags":25,"status":17},4721,"markitdown","microsoft\u002Fmarkitdown","MarkItDown 是一款由微软 AutoGen 团队打造的轻量级 Python 工具，专为将各类文件高效转换为 Markdown 格式而设计。它支持 PDF、Word、Excel、PPT、图片（含 OCR）、音频（含语音转录）、HTML 乃至 YouTube 链接等多种格式的解析，能够精准提取文档中的标题、列表、表格和链接等关键结构信息。\n\n在人工智能应用日益普及的今天，大语言模型（LLM）虽擅长处理文本，却难以直接读取复杂的二进制办公文档。MarkItDown 恰好解决了这一痛点，它将非结构化或半结构化的文件转化为模型“原生理解”且 Token 效率极高的 Markdown 格式，成为连接本地文件与 AI 分析 pipeline 的理想桥梁。此外，它还提供了 MCP（模型上下文协议）服务器，可无缝集成到 Claude Desktop 等 LLM 应用中。\n\n这款工具特别适合开发者、数据科学家及 AI 研究人员使用，尤其是那些需要构建文档检索增强生成（RAG）系统、进行批量文本分析或希望让 AI 助手直接“阅读”本地文件的用户。虽然生成的内容也具备一定可读性，但其核心优势在于为机器",93400,"2026-04-06T19:52:38",[13,16],{"id":27,"name":28,"github_repo":29,"description_zh":30,"stars":31,"difficulty_score":32,"last_commit_at":33,"category_tags":34,"status":17},4292,"Deep-Live-Cam","hacksider\u002FDeep-Live-Cam","Deep-Live-Cam 是一款专注于实时换脸与视频生成的开源工具，用户仅需一张静态照片，即可通过“一键操作”实现摄像头画面的即时变脸或制作深度伪造视频。它有效解决了传统换脸技术流程繁琐、对硬件配置要求极高以及难以实时预览的痛点，让高质量的数字内容创作变得触手可及。\n\n这款工具不仅适合开发者和技术研究人员探索算法边界，更因其极简的操作逻辑（仅需三步：选脸、选摄像头、启动），广泛适用于普通用户、内容创作者、设计师及直播主播。无论是为了动画角色定制、服装展示模特替换，还是制作趣味短视频和直播互动，Deep-Live-Cam 都能提供流畅的支持。\n\n其核心技术亮点在于强大的实时处理能力，支持口型遮罩（Mouth Mask）以保留使用者原始的嘴部动作，确保表情自然精准；同时具备“人脸映射”功能，可同时对画面中的多个主体应用不同面孔。此外，项目内置了严格的内容安全过滤机制，自动拦截涉及裸露、暴力等不当素材，并倡导用户在获得授权及明确标注的前提下合规使用，体现了技术发展与伦理责任的平衡。",88924,3,"2026-04-06T03:28:53",[16,15,14,35],"视频",{"id":37,"name":38,"github_repo":39,"description_zh":40,"stars":41,"difficulty_score":10,"last_commit_at":42,"category_tags":43,"status":17},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",85092,"2026-04-10T11:13:16",[15,44,35,13,14,45,46,16,47],"数据工具","其他","语言模型","音频",{"id":49,"name":50,"github_repo":51,"description_zh":52,"stars":53,"difficulty_score":10,"last_commit_at":54,"category_tags":55,"status":17},6520,"openai-cookbook","openai\u002Fopenai-cookbook","openai-cookbook 是 OpenAI 官方提供的一套实用代码示例与指南合集，旨在帮助开发者快速上手并掌握 OpenAI API 的核心用法。面对大模型应用中常见的提示词工程、函数调用、数据嵌入及复杂任务编排等挑战，新手往往难以找到标准化的实现路径。openai-cookbook 通过提供经过验证的代码片段和详细教程，有效解决了“如何从零开始构建应用”以及“如何最佳实践特定功能”的痛点。\n\n这套资源主要面向软件开发者和 AI 技术研究人员，同时也适合希望深入理解大模型能力的技术爱好者。虽然示例代码主要以 Python 编写，但其背后的设计思路和技术逻辑具有通用性，可轻松迁移至其他编程语言。其独特亮点在于内容紧跟官方最新特性更新，覆盖了从基础文本生成到高级代理（Agent）构建的全场景需求，且所有示例均支持在本地环境直接运行调试。作为开源项目，它采用宽松的 MIT 许可证，鼓励社区贡献与二次开发，是学习大模型应用开发不可或缺的实战手册。",72659,"2026-04-10T21:55:21",[46,13],{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":32,"last_commit_at":62,"category_tags":63,"status":17},2181,"OpenHands","OpenHands\u002FOpenHands","OpenHands 是一个专注于 AI 驱动开发的开源平台，旨在让智能体（Agent）像人类开发者一样理解、编写和调试代码。它解决了传统编程中重复性劳动多、环境配置复杂以及人机协作效率低等痛点，通过自动化流程显著提升开发速度。\n\n无论是希望提升编码效率的软件工程师、探索智能体技术的研究人员，还是需要快速原型验证的技术团队，都能从中受益。OpenHands 提供了灵活多样的使用方式：既可以通过命令行（CLI）或本地图形界面在个人电脑上轻松上手，体验类似 Devin 的流畅交互；也能利用其强大的 Python SDK 自定义智能体逻辑，甚至在云端大规模部署上千个智能体并行工作。\n\n其核心技术亮点在于模块化的软件智能体 SDK，这不仅构成了平台的引擎，还支持高度可组合的开发模式。此外，OpenHands 在 SWE-bench 基准测试中取得了 77.6% 的优异成绩，证明了其解决真实世界软件工程问题的能力。平台还具备完善的企业级功能，支持与 Slack、Jira 等工具集成，并提供细粒度的权限管理，适合从个人开发者到大型企业的各类用户场景。",71002,"2026-04-11T11:20:32",[46,14,16,13],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":76,"owner_avatar_url":77,"owner_bio":78,"owner_company":76,"owner_location":76,"owner_email":76,"owner_twitter":76,"owner_website":76,"owner_url":79,"languages":80,"stars":85,"forks":86,"last_commit_at":87,"license":88,"difficulty_score":89,"env_os":90,"env_gpu":91,"env_ram":92,"env_deps":93,"category_tags":100,"github_topics":101,"view_count":10,"oss_zip_url":76,"oss_zip_packed_at":76,"status":17,"created_at":110,"updated_at":111,"faqs":112,"releases":143},6700,"HA6Bots\u002FTikTok-Compilation-Video-Generator","TikTok-Compilation-Video-Generator","A system of bots that collects clips automatically via custom made filters, lets you easily browse these clips, and puts them together into a compilation video ready to be uploaded straight to any social media platform. Full VPS support is provided, along with an accounts system so multiple users can use the bot at once. This bot is split up into three separate programs. The server. The client. The video generator. These programs perform different functions that when combined creates a very powerful system for auto generating compilation videos.","TikTok-Compilation-Video-Generator 是一套自动化视频剪辑系统，旨在帮助用户高效制作 TikTok 合集视频。它通过自定义过滤器自动抓取热门短视频片段，提供便捷的浏览界面，并能将这些素材智能拼接成完整的合集视频，直接适配各大社交平台的上传标准。\n\n该工具主要解决了手动搜集素材耗时费力、视频剪辑流程繁琐以及难以持续产出高质量内容等痛点。面对互联网上海量的短视频资源，它能大幅降低创作门槛，帮助用户快速建立频道并获取流量。\n\n这套系统特别适合希望批量运营社交媒体账号的内容创作者、自媒体从业者，以及具备一定技术基础的开发者。其独特的技术亮点在于采用了模块化架构，由服务器、客户端和视频生成器三个独立程序协同工作：利用 HTTP 传输指令数据，通过 FTP 安全调度视频文件。此外，它还支持完整的 VPS 部署与多用户账户管理体系，允许多个用户同时使用，既保障了数据安全，又提升了团队协作效率，是构建自动化视频流水线的强大助手。","\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\n\n\n\u003C!-- PROJECT LOGO -->\n\u003Cbr \u002F>\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\">\n    \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FHA6Bots_TikTok-Compilation-Video-Generator_readme_7b02f1b31458.png\" alt=\"Logo\" width=\"80\" height=\"80\">\n  \u003C\u002Fa>\n\n  \u003Ch3 align=\"center\">TikTok Compilation Video Generator\u003C\u002Fh3>\n\n  \u003Cp align=\"center\">\n    A system of bots that collects clips automatically via custom made filters, lets you easily browse these clips, and puts them together into a compilation video ready to be uploaded straight to any social media platform\n    \u003Cbr \u002F>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\">\u003Cstrong>Explore the docs »\u003C\u002Fstrong>\u003C\u002Fa>\n    \u003Cbr \u002F>\n    \u003Cbr \u002F>\n  \u003C\u002Fp>\n\u003C\u002Fp>\n\n\n\n\u003C!-- TABLE OF CONTENTS -->\n\u003Cdetails open=\"open\">\n  \u003Csummary>Table of Contents\u003C\u002Fsummary>\n  \u003Col>\n    \u003Cli>\n      \u003Ca href=\"#about-the-project\">About The Project\u003C\u002Fa>\n      \u003Cul>\n\t    \u003Cli>\u003Ca href=\"#Full-VPS-Support-and-Account-System\">Full VPS Support and Account System\u003C\u002Fa>\u003C\u002Fli>\n\t    \u003Cli>\u003Ca href=\"#What-this-bot-does\">What this bot does\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#Bot-Showcase-Video\">Bot Showcase Video\u003C\u002Fa>\u003C\u002Fli>\n\t\t\u003Cli>\u003Ca href=\"#built-with\">Built With\u003C\u002Fa>\u003C\u002Fli>\n      \u003C\u002Ful>\n    \u003C\u002Fli>\n    \u003Cli>\n      \u003Ca href=\"#getting-started\">Getting Started\u003C\u002Fa>\n      \u003Cul>\n        \u003Cli>\u003Ca href=\"#prerequisites\">Prerequisites\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#installation\">Installation\u003C\u002Fa>\u003C\u002Fli>\n      \u003C\u002Ful>\n    \u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"#roadmap\">Roadmap\u003C\u002Fa>\u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"#license\">License\u003C\u002Fa>\u003C\u002Fli>\n\t\u003Cli>\n      \u003Ca href=\"#file-system\">File System and Explanation\u003C\u002Fa>\n      \u003Cul>\n\t    \u003Cli>\u003Ca href=\"#server-program\">Server Program\u003C\u002Fa>\u003C\u002Fli>\n\t    \u003Cli>\u003Ca href=\"#video-editor-program\">Video Editor Program\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#video-generator-program\">Video Generator Program\u003C\u002Fa>\u003C\u002Fli>\n\t  \u003C\u002Ful>\n\t\u003C\u002Fli>\n    \u003Cli>\t \n\t  \u003Ca href=\"#config-file-explanation\">Config Files and Explanation\u003C\u002Fa>\n      \u003Cul>\n\t    \u003Cli>\u003Ca href=\"#server-config\">Server Config\u003C\u002Fa>\u003C\u002Fli>\n\t    \u003Cli>\u003Ca href=\"#video-editor-config\">Video Editor Config\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#video-generator-config\">Video Generator Config\u003C\u002Fa>\u003C\u002Fli>\n      \u003C\u002Ful> \n\t\u003C\u002Fli> \n  \u003C\u002Fol>\n\u003C\u002Fdetails>\n\n\n\n\u003C!-- ABOUT THE PROJECT -->\n## About The Project\n\n\n\nA system of bots that collects clips automatically via custom made filters, lets you easily browse these clips, and puts them together into a compilation video ready to be uploaded straight to any social media platform. Full VPS support is provided, along with an accounts system so multiple users can use the bot at once. This bot is split up into three separate programs. The server. The client. The video generator. These programs perform different functions that when combined creates a very powerful system for auto generating compilation videos.\n\nTikTok compilation videos are a new phenomena that are quickly taking over the internet. They wrack up a lot of views and can quickly grow a channels follower base. There’s quite literally an endless supply of TikTok videos to choose from so the potential for growing channels is limitless. However there are several challenges involved in creating compilation videos. This bot (or series of programs) addresses many of these issues.\n\n### Full VPS Support and Account System\nSince the bot is split up into three different programs, communications between the programs uses a combination HTTP and FTP servers to move information from one program to the other. The FTP servers are used to move mp4 files around while the HTTP servers are for general information and usually are in the form of json. FTP requires authorisation for each client and therefore this provides the basis of the account system. You can add or remove users and set there password in the server program. This username and password combination is required in the video editor program. Therefore this works perfectly for a multi man operation as allows for multiple people to use the bot at once.\n\n### What this bot does\nPassively downloads and stores clips from TikTok for any user created filter. The clips are automatically kept track of in a clip bin database.\n\nProvides a video editor interface connected directly to the clip bin database, allowing you to easily go through the clips. The interface is somewhat similar to that of tinder, where you can keep\u002Fskip a video clip.\n\nA video generator that compiles the clips from the video editor, generating a mp4 video where that you can upload to any platform.\n\n### Bot Showcase Video\n* [Youtube](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=-yXEDeiQBuk) \n\nThere are three separate programs that make up the TikTok bot.\n\n### Built With\n\nThis section should list any major frameworks used in development.\n* [Python](https:\u002F\u002Fwww.python.org\u002F)\n\n\n\n\u003C!-- GETTING STARTED -->\n## Getting Started\n\nThis is an example of how you may give instructions on setting up your project locally.\nTo get a local copy up and running follow these simple example steps.\n\n### Prerequisites\n\nThis is an example of how to list things you need to use the software and how to install them.\n* FFMPEG\n* [Download FFMPEG](https:\u002F\u002Fwww.ffmpeg.org\u002Fdownload.html)\n  ```\n  Must be added to system path so can be called from command line.\n  ```\n* MySql\n* [Download MySql](https:\u002F\u002Fdev.mysql.com\u002Fdownloads\u002F)\n\n### Installation\n\n1. Install Modules\n   ```sh\n    pip install -r requirements.txt\n   ```\n2. Get TikTok Cookies\n   * Go to [tiktok](https:\u002F\u002Fwww.tiktok.com\u002F)\n   * Login to you account\n   * Go to your profile\n   * Open Developer Tools (cltr+shift+i)\n   * In Developer console go to apllication\n   * Find cookies Folder .\n   * In cookies folder find 's_v_web_id' and 'sid_ucp_v1'\n3. Edit config file in `Tiktok server`\n   * Add value of 's_v_web_id' and 'sid_ucp_v1' from cookie.\n   * Edit database details.\n3. Check and edit config file in `Tiktok Client` and `TikTok Video Generator`\n\n\n\u003C!-- USAGE EXAMPLES -->\n## Usage\n\n1. Start mysql database.\n\n2. Go to `Tiktok Server` and start server.\n    ```sh\n    py main.py\n   ```   \n   * Add filter , make it live.\n   * search and download Clips\n   \n3. Go to `Tiktok Client` and start.\n    ```sh\n    py main.py\n   ```\n   *Edit clips\n   *Change duration, Intro, Outro and Interval.\n   \n4. Go to `Tiktok Video Generator` and start.\n\t```sh\n    py main.py\n   ```\n   *Select and Render Final Video file .\n\n\u003C!-- ROADMAP -->\n## Roadmap\n\nSee the [open issues](https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues) for a list of proposed features (and known issues).\n\n\n\n\n\u003C!-- LICENSE -->\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\n\n## FIle System \n\n\n### Server Program\n\nFunction:\n\n• Automatically downloads clips from TikTok for any categories that you select.\n\n• Can manage accounts for the client logins\n\nAutomatic Downloader Notes\n\nThe automatic downloader side of the server is designed in a way to get around the TikTok limitations for getting the highlight clips.\n\nIt is split into two different processes:\n\nFinding the clip and obtaining it’s URL\n\nDownloading the clip via the URL\n\nThere are no restrictions on downloading the clips and this is simple to do once a URL is obtained. However finding the top clips in the first place is another story.\n\nTikTok only gives you access to about 2000 clips for each request entered in the API call. This would not be a sufficient amount of clips if the find\u002Fdownload process is only initiated when the bot is used for video editing. Therefore it is recommended to run this process automatically to build up a large clip bin, preferably on a VPS. This is largely down to the usage of the bot - heavy usage will demand a large amount of clips, and therefore turning on the automated find\u002Fdownload process is recommended for this case.\n\n* main.py : start point\n\n* database.py : all the sql queries are written here\n\n* server.py : FTP and HTTP Servers are handled here.\n\n* settings.py : Data loaded in from config.ini\n\n* tiktok.py : Where the API calls are made to TikTok with the download\u002Ffind methods.\n\n* autodownloader.py : A wrapper for the download\u002Ffind process utilised in autodownloaderUI.py\n\n* autodownloaderUI.py : Where the UI is programmed\n\nscriptwrapper.py : Various wrappers for the TikTok clips here. Formatting of the video occurs here in the “reformatPartialJson” method\n\n### Video Editor Program\n\nThis is the actual user interface used to browse the clips in the server clip bin. This is a fairly simple process, for any one clip you have the option to keep or remove it.\n\n* main.py : start point\n\n* client.py : Communications with the server http and ftp occur here\n\n* settings.py : Data loaded in from config.ini\n\n* scriptwrapper.py : Various wrappers for tiktok clips \u002F entire videos are stored here\n\n* clientUI.py : Where the UI is programmed\n\n### Video Generator Program\n\nThis actually puts together the clips into a compilation video. It also generates a credits text file with all the usernames of the TikToks used in the video.\n\n* main.py : start point\n\n* server.py : FTP and HTTP Servers are handled here.\n\n* settings.py : Data loaded in from config.ini\n\n* scriptwrapper.py : Various wrappers for tiktok clips \u002F entire videos are stored here\n\n* vidGen.py : Methods for video rendering here see “renderVideo”\n\n* vidgenUI.py : Where the UI is programmed\n\n\n## Config File Explanation\n\nAdditional settings that only take effect on start-up are stored in a config file for each program. Any changes made require a restart to the particular program.\n\n### Server Config\n\n[server_details]\n\n* address = 127.0.0.1 \u003C-- Server Address\n\n* http_port = 8000 \u003C-- Server HTTP Port\n\n* ftp_port = 2121 \u003C-- Server FTP Port\n\n[video_generator_location]\n\n* address = 127.0.0.1 \u003C-- Video Generator Address\n\n* http_port = 8001 \u003C-- Video Generator HTTP Port\n\n* ftp_port = 2122 \u003C-- Video Generator FTP Port\n\n* ftp_user = VidGen \u003C-- Video Generator FTP Client name\n\n* ftp_password = password \u003C-- Video Generator FTP Client password\n\n[tiktok]\n\n* language = en \u003C-- Clip language\n\n* s_v_web_id = value \u003C-- Get from TikTok Cookies , Read Above.\n\n* tt_webid = value \u003C-- Get from TikTok Cookies , Read Above.\n\n[mysql_database]\n\n* databasehost = localhost \u003C-- MySQL Server address\n\n* databaseuser = root \u003C-- MySQL Server user\n\n* databasepassword =  \u003C-- MySQL Server user password\n\n### Video Editor Config\n\n[server_location]\n\n* address = 127.0.0.1 \u003C-- Server address\n\n* server_http_port = 8000 \u003C-- Server HTTP port\n\n* server_ftp_port = 2121 \u003C-- Server FTP port\n\n[auto_login]\n\n* username = admin \u003C-- User registered in server\n\n* password = password \u003C-- User registered in server’s password\n\n* auto_login = true \u003C-- Insert the above details into the login window on startup\n\n[video_settings]\n\n* enforce_interval = True \u003C-- Forces you to select a interval for your video\n\n* enforce_intro = True \u003C-- Forces you to select a intro for your video\n\n* enforce_outro = True \u003C-- Forces you to select a outro for your video\n\n* enforce_firstclip = True \u003C-- Forces you to select a first clip for your video\n\n### Video Generator Config\n\n[video_generator_details]\n\n* address = 127.0.0.1 \u003C-- Video Generator Address\n\n* http_port = 8001 \u003C-- Video Generator HTTP port\n\n* ftp_port = 2122 \u003C-- Video Generator FTP port\n\n* ftp_user = VidGen \u003C-- Video Generator FTP user\n\n* ftp_password = password \u003C-- Video Generator FTP user’s password\n\n[server_location]\n\n* address = 127.0.0.1 \u003C-- Server address\n\n* http_port = 8000 \u003C-- Server HTTP port\n\n* ftp_port = 2121 \u003C-- Server FTP port\n\n[rendering]\n\n* fps = 30 \u003C-- FPS to render video at if useMinimumFps or useMaximumFps are both true\n\n* useMinimumFps = True \u003C-- Sets all the individual clips FPS to the lowest FPS of the clips (recommended)\n\n* useMaximumFps = False \u003C-- Sets all the individual clips FPS to the highest FPS of the clips\n\n* backupVideos = True \u003C-- Will automatically backup each video send to the video generator. These can be rerendered or deleted via the UI\n\n\n\u003C!-- MARKDOWN LINKS & IMAGES -->\n\u003C!-- https:\u002F\u002Fwww.markdownguide.org\u002Fbasic-syntax\u002F#reference-style-links -->\n[contributors-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[contributors-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fgraphs\u002Fcontributors\n[forks-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fforks\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[forks-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fnetwork\u002Fmembers\n[stars-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[stars-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fstargazers\n[issues-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[issues-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\n[license-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[license-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fblob\u002Fmaster\u002FLICENSE\n\n[product-screenshot]: images\u002Fscreenshot.png\n","[![贡献者][contributors-shield]][contributors-url]\n[![分支数][forks-shield]][forks-url]\n[![星标数][stars-shield]][stars-url]\n[![问题数][issues-shield]][issues-url]\n[![MIT许可证][license-shield]][license-url]\n\n\n\n\n\u003C!-- 项目Logo -->\n\u003Cbr \u002F>\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\">\n    \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FHA6Bots_TikTok-Compilation-Video-Generator_readme_7b02f1b31458.png\" alt=\"Logo\" width=\"80\" height=\"80\">\n  \u003C\u002Fa>\n\n  \u003Ch3 align=\"center\">TikTok合集视频生成器\u003C\u002Fh3>\n\n  \u003Cp align=\"center\">\n    一套机器人系统，通过自定义过滤器自动收集视频片段，方便用户浏览这些片段，并将它们组合成可以直接上传到任何社交媒体平台的合集视频。\n    \u003Cbr \u002F>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\">\u003Cstrong>探索文档 »\u003C\u002Fstrong>\u003C\u002Fa>\n    \u003Cbr \u002F>\n    \u003Cbr \u002F>\n  \u003C\u002Fp>\n\u003C\u002Fp>\n\n\n\n\u003C!-- 目录 -->\n\u003Cdetails open=\"open\">\n  \u003Csummary>目录\u003C\u002Fsummary>\n  \u003Col>\n    \u003Cli>\n      \u003Ca href=\"#about-the-project\">关于项目\u003C\u002Fa>\n      \u003Cul>\n\t    \u003Cli>\u003Ca href=\"#Full-VPS-Support-and-Account-System\">全面的VPS支持与账户系统\u003C\u002Fa>\u003C\u002Fli>\n\t    \u003Cli>\u003Ca href=\"#What-this-bot-does\">该机器人能做什么\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#Bot-Showcase-Video\">机器人展示视频\u003C\u002Fa>\u003C\u002Fli>\n\t\t\u003Cli>\u003Ca href=\"#built-with\">使用的技术\u003C\u002Fa>\u003C\u002Fli>\n      \u003C\u002Ful>\n    \u003C\u002Fli>\n    \u003Cli>\n      \u003Ca href=\"#getting-started\">开始使用\u003C\u002Fa>\n      \u003Cul>\n        \u003Cli>\u003Ca href=\"#prerequisites\">前提条件\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#installation\">安装\u003C\u002Fa>\u003C\u002Fli>\n      \u003C\u002Ful>\n    \u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"#usage\">使用方法\u003C\u002Fa>\u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"#roadmap\">路线图\u003C\u002Fa>\u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"#license\">许可证\u003C\u002Fa>\u003C\u002Fli>\n\t\u003Cli>\n      \u003Ca href=\"#file-system\">文件系统及说明\u003C\u002Fa>\n      \u003Cul>\n\t    \u003Cli>\u003Ca href=\"#server-program\">服务器程序\u003C\u002Fa>\u003C\u002Fli>\n\t    \u003Cli>\u003Ca href=\"#video-editor-program\">视频编辑程序\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#video-generator-program\">视频生成程序\u003C\u002Fa>\u003C\u002Fli>\n\t  \u003C\u002Ful>\n\t\u003C\u002Fli>\n    \u003Cli>\t \n\t  \u003Ca href=\"#config-file-explanation\">配置文件及说明\u003C\u002Fa>\n      \u003Cul>\n\t    \u003Cli>\u003Ca href=\"#server-config\">服务器配置\u003C\u002Fa>\u003C\u002Fli>\n\t    \u003Cli>\u003Ca href=\"#video-editor-config\">视频编辑配置\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"#video-generator-config\">视频生成配置\u003C\u002Fa>\u003C\u002Fli>\n      \u003C\u002Ful> \n\t\u003C\u002Fli> \n  \u003C\u002Fol>\n\u003C\u002Fdetails>\n\n\n\n\u003C!-- 关于项目 -->\n## 关于项目\n\n\n\n一套机器人系统，通过自定义过滤器自动收集视频片段，方便用户浏览这些片段，并将它们组合成可以直接上传到任何社交媒体平台的合集视频。提供全面的VPS支持以及账户系统，允许多个用户同时使用该机器人。该机器人分为三个独立的程序：服务器、客户端和视频生成器。这些程序各自承担不同的功能，组合起来形成一个功能强大的自动合集视频生成系统。\n\nTikTok合集视频是一种新兴的现象，正在迅速席卷互联网。它们能够获得大量观看量，并快速增加频道的粉丝基础。从字面上看，可供选择的TikTok视频资源几乎是无穷无尽的，因此频道增长的潜力也是无限的。然而，制作合集视频也面临诸多挑战。这款机器人（或一系列程序）正是为了解决这些问题而设计的。\n\n### 全面的VPS支持与账户系统\n由于该机器人由三个不同的程序组成，程序之间的通信采用HTTP和FTP服务器相结合的方式，以在不同程序之间传递信息。FTP服务器用于传输MP4文件，而HTTP服务器则用于传输一般信息，通常以JSON格式呈现。FTP需要对每个客户端进行身份验证，因此这构成了账户系统的基础。您可以在服务器程序中添加或删除用户，并设置其密码。视频编辑程序需要使用这一用户名和密码组合才能运行。因此，该系统非常适合多人协作，允许多个人同时使用该机器人。\n\n### 该机器人能做什么\n被动地从TikTok下载并存储任何用户创建的过滤器中的视频片段。这些片段会自动记录在片段库数据库中。\n\n提供一个直接连接到片段库数据库的视频编辑界面，使您可以轻松浏览这些片段。该界面类似于Tinder，您可以选择保留或跳过某个视频片段。\n\n还有一个视频生成器，它会将视频编辑器中的片段组合起来，生成一个MP4视频，您可以将其上传到任何平台。\n\n### 机器人展示视频\n* [Youtube](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=-yXEDeiQBuk) \n\nTikTok机器人由三个独立的程序组成。\n\n### 使用的技术\n\n本节应列出开发过程中使用的主要框架。\n* [Python](https:\u002F\u002Fwww.python.org\u002F)\n\n\n\n\u003C!-- 开始使用 -->\n## 开始使用\n\n这是一个示例，说明如何在本地设置您的项目。\n要让本地副本正常运行，请按照以下简单步骤操作。\n\n### 前提条件\n\n这是一个示例，说明您需要哪些软件以及如何安装它们。\n* FFMPEG\n* [下载FFMPEG](https:\u002F\u002Fwww.ffmpeg.org\u002Fdownload.html)\n  ```\n  必须将其添加到系统路径中，以便可以从命令行调用。\n  ```\n* MySql\n* [下载MySql](https:\u002F\u002Fdev.mysql.com\u002Fdownloads\u002F)\n\n### 安装\n\n1. 安装模块\n   ```sh\n    pip install -r requirements.txt\n   ```\n2. 获取TikTok Cookie\n   * 访问[TikTok](https:\u002F\u002Fwww.tiktok.com\u002F)\n   * 登录您的账号\n   * 进入您的个人资料页面\n   * 打开开发者工具（Ctrl+Shift+I）\n   * 在开发者控制台中，进入“Application”选项卡\n   * 找到“Cookies”文件夹。\n   * 在Cookies文件夹中找到‘s_v_web_id’和‘sid_ucp_v1’\n3. 编辑`TikTok服务器`中的配置文件\n   * 将Cookie中的‘s_v_web_id’和‘sid_ucp_v1’值填入配置文件中。\n   * 编辑数据库连接信息。\n3. 检查并编辑`TikTok客户端`和`TikTok视频生成器`中的配置文件\n\n\n\u003C!-- 使用示例 -->\n## 使用方法\n\n1. 启动MySQL数据库。\n\n2. 进入`TikTok服务器`并启动服务器。\n    ```sh\n    py main.py\n   ```   \n   * 添加过滤器，使其生效。\n   * 搜索并下载视频片段\n   \n3. 进入`TikTok客户端`并启动。\n    ```sh\n    py main.py\n   ```\n   * 编辑视频片段。\n   * 更改时长、片头、片尾和间隔时间。\n   \n4. 进入`TikTok视频生成器`并启动。\n\t```sh\n    py main.py\n   ```\n   * 选择并渲染最终视频文件。\n\n\u003C!-- 路线图 -->\n## 路线图\n\n请参阅[未解决问题列表](https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues)，了解拟议的功能（以及已知问题）。\n\n\n\n\n\u003C!-- 许可证 -->\n## 许可证\n\n根据MIT许可证发布。更多信息请参阅`LICENSE`文件。\n\n\n\n\n\n## 文件系统\n\n### 服务器程序\n\n功能：\n\n• 自动从 TikTok 下载您选择的任何类别的视频片段。\n\n• 可以管理客户端登录的账户。\n\n自动下载器说明\n\n服务器端的自动下载器设计旨在绕过 TikTok 对获取精华视频片段的限制。\n\n它分为两个不同的流程：\n\n1. 查找视频片段并获取其 URL\n2. 通过 URL 下载视频片段\n\n下载视频片段本身没有限制，一旦获得 URL，操作就非常简单。然而，要找到热门视频片段则另当别论。\n\nTikTok 每次 API 请求仅允许访问约 2000 个视频片段。如果仅在使用机器人进行视频编辑时才启动查找\u002F下载流程，这样的数量显然不够。因此，建议自动运行此流程以积累大量的视频片段库，最好是在 VPS 上进行。这主要取决于机器人的使用频率——频繁使用需要大量视频片段，因此在这种情况下建议开启自动查找\u002F下载功能。\n\n* main.py：程序起点\n* database.py：所有 SQL 查询在此编写\n* server.py：FTP 和 HTTP 服务器在此处理\n* settings.py：从 config.ini 加载数据\n* tiktok.py：在此向 TikTok 发起 API 调用，执行下载和查找方法\n* autodownloader.py：为 autodownloaderUI.py 中使用的下载\u002F查找流程提供封装\n* autodownloaderUI.py：用户界面在此编程\n\nscriptwrapper.py：此处包含针对 TikTok 视频片段的各种封装工具。视频格式化工作在此处的“reformatPartialJson”方法中完成。\n\n### 视频编辑器程序\n\n这是用于浏览服务器视频片段库的实际用户界面。这个过程相当简单：对于每个视频片段，您可以选择保留或删除。\n\n* main.py：程序起点\n* client.py：与服务器的 HTTP 和 FTP 通信在此进行\n* settings.py：从 config.ini 加载数据\n* scriptwrapper.py：此处存储了针对 TikTok 片段或完整视频的各种封装工具\n* clientUI.py：用户界面在此编程\n\n### 视频生成器程序\n\n该程序将多个视频片段拼接成一个合集视频，并生成一个包含视频中所用 TikTok 用户名的片尾字幕文件。\n\n* main.py：程序起点\n* server.py：FTP 和 HTTP 服务器在此处理\n* settings.py：从 config.ini 加载数据\n* scriptwrapper.py：此处存储了针对 TikTok 片段或完整视频的各种封装工具\n* vidGen.py：视频渲染方法在此，参见“renderVideo”\n* vidgenUI.py：用户界面在此编程\n\n\n## 配置文件说明\n\n仅在启动时生效的附加设置存储在每个程序的配置文件中。任何更改都需要重启相应程序才能生效。\n\n### 服务器配置\n\n[server_details]\n\n* address = 127.0.0.1 \u003C-- 服务器地址\n* http_port = 8000 \u003C-- 服务器 HTTP 端口\n* ftp_port = 2121 \u003C-- 服务器 FTP 端口\n\n[video_generator_location]\n\n* address = 127.0.0.1 \u003C-- 视频生成器地址\n* http_port = 8001 \u003C-- 视频生成器 HTTP 端口\n* ftp_port = 2122 \u003C-- 视频生成器 FTP 端口\n* ftp_user = VidGen \u003C-- 视频生成器 FTP 用户名\n* ftp_password = password \u003C-- 视频生成器 FTP 用户密码\n\n[tiktok]\n\n* language = en \u003C-- 视频语言\n* s_v_web_id = value \u003C-- 从 TikTok Cookies 中获取，详见上方说明\n* tt_webid = value \u003C-- 从 TikTok Cookies 中获取，详见上方说明\n\n[mysql_database]\n\n* databasehost = localhost \u003C-- MySQL 服务器地址\n* databaseuser = root \u003C-- MySQL 服务器用户名\n* databasepassword =  \u003C-- MySQL 服务器用户密码\n\n### 视频编辑器配置\n\n[server_location]\n\n* address = 127.0.0.1 \u003C-- 服务器地址\n* server_http_port = 8000 \u003C-- 服务器 HTTP 端口\n* server_ftp_port = 2121 \u003C-- 服务器 FTP 端口\n\n[auto_login]\n\n* username = admin \u003C-- 在服务器上注册的用户名\n* password = password \u003C-- 该用户的密码\n* auto_login = true \u003C-- 启动时自动将上述信息填入登录窗口\n\n[video_settings]\n\n* enforce_interval = True \u003C-- 强制您为视频选择一个间隔时间\n* enforce_intro = True \u003C-- 强制您为视频选择一个片头\n* enforce_outro = True \u003C-- 强制您为视频选择一个片尾\n* enforce_firstclip = True \u003C-- 强制您为视频选择第一个片段\n\n### 视频生成器配置\n\n[video_generator_details]\n\n* address = 127.0.0.1 \u003C-- 视频生成器地址\n* http_port = 8001 \u003C-- 视频生成器 HTTP 端口\n* ftp_port = 2122 \u003C-- 视频生成器 FTP 端口\n* ftp_user = VidGen \u003C-- 视频生成器 FTP 用户\n* ftp_password = password \u003C-- 视频生成器 FTP 用户密码\n\n[server_location]\n\n* address = 127.0.0.1 \u003C-- 服务器地址\n* http_port = 8000 \u003C-- 服务器 HTTP 端口\n* ftp_port = 2121 \u003C-- 服务器 FTP 端口\n\n[rendering]\n\n* fps = 30 \u003C-- 如果 useMinimumFps 和 useMaximumFps 均为真，则视频将以 30 帧每秒的速度渲染\n* useMinimumFps = True \u003C-- 将所有单个片段的帧率设置为最低帧率（推荐）\n* useMaximumFps = False \u003C-- 将所有单个片段的帧率设置为最高帧率\n* backupVideos = True \u003C-- 自动备份发送到视频生成器的每段视频。这些视频可以通过用户界面重新渲染或删除\n\n\n\u003C!-- MARKDOWN LINKS & IMAGES -->\n\u003C!-- https:\u002F\u002Fwww.markdownguide.org\u002Fbasic-syntax\u002F#reference-style-links -->\n[contributors-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[contributors-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fgraphs\u002Fcontributors\n[forks-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fforks\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[forks-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fnetwork\u002Fmembers\n[stars-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[stars-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fstargazers\n[issues-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[issues-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\n[license-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator.svg?style=for-the-badge\n[license-url]: https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fblob\u002Fmaster\u002FLICENSE\n\n[product-screenshot]: images\u002Fscreenshot.png","# TikTok 合集视频生成器快速上手指南\n\nTikTok-Compilation-Video-Generator 是一个自动化系统，能够根据自定义过滤器抓取 TikTok 片段，提供类似 Tinder 的浏览界面供用户筛选，并最终自动合成为可上传至社交平台的合集视频。该系统由服务器、客户端（编辑器）和视频生成器三个独立程序组成，支持多用户协作。\n\n## 环境准备\n\n在开始之前，请确保您的系统满足以下要求并安装了必要的依赖：\n\n### 系统要求\n- 操作系统：Windows \u002F Linux \u002F macOS\n- Python 环境（推荐 Python 3.8+）\n- MySQL 数据库\n\n### 前置依赖\n1. **FFMPEG**\n   - 用于视频处理。\n   - 下载地址：[https:\u002F\u002Fwww.ffmpeg.org\u002Fdownload.html](https:\u002F\u002Fwww.ffmpeg.org\u002Fdownload.html)\n   - **重要**：安装后必须将 FFMPEG 添加到系统环境变量 (System Path) 中，以便在命令行中直接调用。\n\n2. **MySQL**\n   - 用于存储片段数据库。\n   - 下载地址：[https:\u002F\u002Fdev.mysql.com\u002Fdownloads\u002F](https:\u002F\u002Fdev.mysql.com\u002Fdownloads\u002F)\n   - *国内用户建议前往腾讯云或阿里云镜像站下载以加速。*\n\n3. **Python 依赖库**\n   - 项目所需的 Python 包。\n\n## 安装步骤\n\n### 1. 安装 Python 依赖\n在项目根目录下运行以下命令安装所需模块：\n```sh\npip install -r requirements.txt\n```\n*注：国内用户如遇下载缓慢，可使用清华源或阿里源：*\n```sh\npip install -r requirements.txt -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n```\n\n### 2. 获取 TikTok Cookies\n为了绕过限制抓取视频，需要配置账号 Cookies：\n1. 浏览器访问 [tiktok.com](https:\u002F\u002Fwww.tiktok.com\u002F) 并登录账号。\n2. 进入个人主页。\n3. 按 `Ctrl+Shift+I` (Windows) 或 `Cmd+Option+I` (Mac) 打开开发者工具。\n4. 切换到 **Application** (应用) 标签页。\n5. 在左侧菜单找到 **Cookies** 文件夹，展开并选择 `https:\u002F\u002Fwww.tiktok.com`。\n6. 在右侧列表中找到 `s_v_web_id` 和 `sid_ucp_v1` (部分版本可能为 `tt_webid`)，复制它们的值备用。\n\n### 3. 配置文件设置\n项目包含三个主要目录，需分别配置 `config.ini` (或对应配置文件)：\n\n#### A. Tiktok Server (`Tiktok server` 目录)\n- 填入刚才获取的 Cookie 值 (`s_v_web_id`, `sid_ucp_v1`\u002F`tt_webid`)。\n- 配置 MySQL 数据库连接信息 (主机、用户名、密码)。\n- 设置服务器地址和端口 (默认通常为 127.0.0.1)。\n\n#### B. Tiktok Client (`Tiktok Client` 目录)\n- 配置服务器连接地址和端口（需与 Server 端一致）。\n- 设置自动登录的用户名和密码（需在 Server 端预先创建或通过默认 admin 登录）。\n\n#### C. TikTok Video Generator (`TikTok Video Generator` 目录)\n- 配置服务器连接地址和端口。\n- 配置视频渲染参数 (如 FPS、是否备份等)。\n\n## 基本使用\n\n本系统需按顺序启动三个程序才能正常工作。\n\n### 第一步：启动数据库\n确保 MySQL 服务正在运行。\n\n### 第二步：启动服务器 (Server)\n进入 `Tiktok Server` 目录，运行：\n```sh\npy main.py\n```\n- 在界面中添加过滤条件 (Filter) 并启用。\n- 系统将开始自动搜索并下载符合要求的 TikTok 片段到数据库。\n\n### 第三步：启动客户端\u002F编辑器 (Client)\n进入 `Tiktok Client` 目录，运行：\n```sh\npy main.py\n```\n- 登录系统（使用 Server 配置的账号）。\n- 浏览下载的片段：界面类似 Tinder，可选择保留 (Keep) 或跳过 (Skip) 片段。\n- 设置视频参数：调整片段时长、片头 (Intro)、片尾 (Outro) 及间隔时间。\n\n### 第四步：启动视频生成器 (Generator)\n进入 `TikTok Video Generator` 目录，运行：\n```sh\npy main.py\n```\n- 选择已编辑好的任务。\n- 点击渲染 (Render)，系统将自动合成最终的 MP4 视频文件，并生成包含原作者信息的 credits 文本文件。\n\n完成以上步骤后，即可在输出目录找到生成的合集视频，可直接上传至抖音、TikTok 或其他社交平台。","某短视频运营团队希望每日批量生产“搞笑宠物”主题的 TikTok 合集视频，以快速矩阵化扩张账号粉丝。\n\n### 没有 TikTok-Compilation-Video-Generator 时\n- **素材搜集低效**：运营人员需手动在 TikTok 上逐个搜索、筛选符合“宠物搞笑”标签的视频，并单独下载，耗时数小时仅能凑齐少量素材。\n- **剪辑流程繁琐**：下载后的视频格式不一，需人工导入剪辑软件进行裁剪、去水印、拼接和添加转场，极易出现人为操作失误。\n- **难以规模化复制**：由于全靠人力堆砌，团队无法同时为多个账号生成不同风格的合集，内容更新频率受限，错失流量红利。\n- **协作管理混乱**：多名成员共用素材库时缺乏权限控制，常发生文件覆盖或版本冲突，且无法在远程服务器（VPS）上自动化运行任务。\n\n### 使用 TikTok-Compilation-Video-Generator 后\n- **自动采集过滤**：通过自定义过滤器，系统自动全天候抓取符合特定标签的高质量片段，瞬间建立专属素材库。\n- **一键生成成片**：视频生成程序自动将筛选好的片段拼接、处理格式并添加转场，直接输出可上传的成品视频，无需人工干预。\n- **高效矩阵运营**：利用多账户系统和 VPS 支持，团队可同时为数十个账号并行生成不同主题的合集，实现 24 小时不间断内容产出。\n- **规范化协作**：基于 FTP\u002FHTTP 的架构实现了严格的权限管理，多用户可安全地并发使用服务器资源，流程清晰可控。\n\nTikTok-Compilation-Video-Generator 将原本需要全天人工投入的繁琐流水线，转化为全自动化的智能生产系统，让内容创作者能专注于策略而非重复劳动。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FHA6Bots_TikTok-Compilation-Video-Generator_e1a45ca3.png","HA6Bots",null,"https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002FHA6Bots_d61c62fe.png","Releasing bots that really shouldn't be released...\r\n\r\nMostly inactive on this account now. Feel free to create pull requests.\r\n\r\nroyalredditofficial@gmail.com","https:\u002F\u002Fgithub.com\u002FHA6Bots",[81],{"name":82,"color":83,"percentage":84},"Python","#3572A5",100,914,139,"2026-04-08T19:01:33","MIT",4,"未说明 (支持任何可运行 Python、FFmpeg 和 MySQL 的操作系统，文档提及 VPS 支持)","未说明 (基于 FFmpeg 进行视频渲染，通常依赖 CPU)","未说明",{"notes":94,"python":95,"dependencies":96},"1. 该工具由三个独立程序组成：服务器端 (Server)、客户端\u002F视频编辑器 (Client)、视频生成器 (Video Generator)。\n2. 必须安装 FFmpeg 并将其添加到系统环境变量路径中，以便从命令行调用。\n3. 需要自行搭建并运行 MySQL 数据库。\n4. 使用前需手动从 TikTok 网页获取 Cookie ('s_v_web_id' 和 'sid_ucp_v1') 并填入配置文件。\n5. 程序间通过 HTTP 和 FTP 协议通信，服务器端包含用户账户管理系统。\n6. 建议在 VPS 上运行自动下载进程以积累大量视频素材。","未说明 (需安装 Python 以运行 pip 和脚本)",[97,98,99],"FFmpeg","MySQL","requirements.txt 中列出的 Python 模块 (具体列表未在 README 中显示)",[13,35],[102,103,104,105,106,107,108,109],"video-generation","tiktok","tiktok-scraper","tiktok-api","tiktok-downloader","automatic","video-processing","videoeditor","2026-03-27T02:49:30.150509","2026-04-12T05:15:47.453138",[113,118,123,128,133,138],{"id":114,"question_zh":115,"answer_zh":116,"source_url":117},30239,"运行 main.py 时出现 'KeyError: s_v_web_id' 或 'NoOptionError' 错误怎么办？","这是因为配置文件中缺少 TikTok 的 Cookie 信息。请按照以下步骤获取并填写：\n1. 在 Chrome 或其他浏览器中打开 TikTok 网站并登录账号。\n2. 进入个人主页。\n3. 按 F12 打开开发者工具（Developer Tools）。\n4. 在顶部选项卡中选择 'Application'（应用）。\n5. 在左侧菜单找到 'Cookies' 文件夹并展开，选择 TikTok 域名。\n6. 在右侧列表中找到 's_v_web_id' 和 'ttwid'（或其他相关值），复制它们的值。\n7. 将这些值粘贴到项目目录下的 config.ini 文件中对应的字段里。","https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\u002F20",{"id":119,"question_zh":120,"answer_zh":121,"source_url":122},30240,"遇到 'TypeError: __init__() takes 1 positional argument but 2 were given' 错误如何解决？","这是由于 TikTokApi 库更新导致参数不匹配。维护者已修复该问题：\n请更新项目中的 tiktok.py 文件，移除初始化 TikTokApi 时多余的参数，以适配 TikTokAPI 3.6 及以上版本。如果您使用的是旧版本代码，请从仓库拉取最新代码或手动修改 tiktok.py 中调用 TikTokApi 的行，只传入必要的参数（通常只需传入代理路径或无参数，具体视版本而定）。","https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\u002F3",{"id":124,"question_zh":125,"answer_zh":126,"source_url":127},30241,"点击 'download clips' 时出现 'ftplib.error_perm: 530 Authentication failed' 认证失败错误？","此错误通常由 FTP 配置不当引起。请尝试以下解决方案：\n1. 确保已在服务器端程序注册新用户，并重启服务器。\n2. 检查客户端和服务端的配置文件（config），确认填写了正确的用户名和密码。\n3. 尝试将配置文件中的 FTP 地址从 'localhost' 改为 '127.0.0.1' 或具体的 IPv4 地址。\n4. 如果问题依旧，尝试重新安装 Python 并重新写入配置信息。","https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\u002F2",{"id":129,"question_zh":130,"answer_zh":131,"source_url":132},30242,"下载视频时遇到 '403 Forbidden' 错误如何修复？","需要在代码中添加 User-Agent 和 Referer 头信息来模拟合法请求。请在 tiktok.py 文件中执行下载操作的代码块之前（例如 urlretrieve 调用前），添加以下代码：\n\nopener = urllib.request.build_opener()\nopener.addheaders = [('User-agent', 'okhttp'), ('referer', 'https:\u002F\u002Fwww.tiktok.com\u002F')]\nurllib.request.install_opener(opener)\n\n这将使请求头包含必要的信息从而绕过 403 限制。","https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\u002F1",{"id":134,"question_zh":135,"answer_zh":136,"source_url":137},30243,"如何下载不带水印的 TikTok 视频？","当前主仓库版本可能不支持无水印下载。用户可以尝试使用社区提供的分支版本，该版本移除了水印功能。您可以搜索相关的 Pull Request（如 #40）或直接克隆实现了该功能的 fork 仓库进行使用。","https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\u002F36",{"id":139,"question_zh":140,"answer_zh":141,"source_url":142},30244,"下载剪辑时出现 'float() argument must be a string or a number, not NoneType' 错误？","该错误表明程序无法获取视频时长信息（返回了 None），通常是因为视频数据解析失败或 API 返回结构变化。虽然此 Issue 未给出明确代码修复，但常见解决方法包括：\n1. 确保使用的是最新版本的代码，因为维护者可能已修复 API 解析逻辑。\n2. 检查网络连接是否正常，确保能成功获取视频元数据。\n3. 某些特定视频可能因隐私设置或地区限制无法获取时长，尝试更换其他视频测试。若问题普遍存在，建议查看是否有更新的补丁处理 'itemInfo' 缺失的情况。","https:\u002F\u002Fgithub.com\u002FHA6Bots\u002FTikTok-Compilation-Video-Generator\u002Fissues\u002F16",[]]