bili_douyin_xhs_uploader

一个基于Python的开源工具,提供命令行界面,用于批量上传视频到国内主流视频平台(哔哩哔哩、抖音、小红书),支持自定义视频标题、描述及无头模式运行。

仓库地址: https://github.com/aceliuchanghong/bili_douyin_xhs_uploader.git命令行执行usage: main.py [-h] --platforms PLATFORMS --video_url VIDEO_URL --video_path VIDEO_PATH --video_name VIDEO_NAME [--description DESCRIPTION] [--headless]Upload videos to various platforms.optional arguments: -h, --help show this help message and exit --platforms PLATFORMS The platform to upload the video to (e.g., 'bili', 'douyin', 'xhs'). --video_url VIDEO_URL Url of the video file. --video_path VIDEO_PATH Path to the video file. --video_name VIDEO_NAME Title of the video. --description DESCRIPTION Description of the video. --headless Run in headless mode (default: False)示例:# 判断数据库中是否存在,存在就不上传了# eg:cd bili_douyin_xhs_uploaderpython main.py --platforms "xhs" --video_url "https://test" --video_path "files/test/11.mp4" --video_name "我只在乎你鄧麗君" --description "我只在乎你鄧麗君 琵琶 演奏"python main.py --platforms "douyin" --video_url "https://test" --video_path "files/test/11.mp4" --video_name "我只在乎你鄧麗君" --description "我只在乎你鄧麗君 琵琶 演奏"python main.py --platforms "douyin" --video_url "https://test2" --video_path "files/test/00.mp4" --video_name "你的身边有我们 你的背后是祖国" --description "你的身边有我们 你的背后是祖国"python main.py --platforms "bili" --video_url "https://test" --video_path "files/test/11.mp4" --video_name "我只在乎你鄧麗君" --description "我只在乎你鄧麗君 琵琶 演奏"python main.py --platforms "douyin" --video_url "https://test_ubuntu" --video_path "/home/aceliuchanghong/ftpfiles/liu/00.mp4" --video_name "你的身边有我们 你的背后是祖国" --description "你的身边有我们 你的背后是祖国" --headlesspython main.py --platforms "xhs" --video_url "https://test2" --video_path "files/test/00.mp4" --video_name "你的身边有我们 你的背后是祖国" --description "你的身边有我们 你的背后是祖国" --headless项目结构:bili_douyin_xhs_uploader/│├── LICENSE├── README.md├── gpt_prompt.md├── main.py├── requirements.txt├── test.py├── cookies/├── core/│ ├── config.py│ ├── exceptions.py│ ├── upload.py│ └── video_info.py├── files/├── log/│ ├── ftp_log.md│ └── media_uploader.db├── platforms/│ ├── bili/│ │ └── uploader.py│ ├── douyin/│ │ └── uploader.py│ └── xhs/│ └── uploader.py└── utils/ └── util_sqlite.py