
简体中文 | English
🔥 TikTok Posts/Liked/Mix/Live/Video/Image/Music; DouYin Posts/Liked/Favorites/Collections/Video/Image/LivePhoto/Live/Music/Mix/Comments/Account/Search/Hot Board Data Acquisition Tools: Fully open-source, free data collection and file download tool based on HTTPX module implementation; batch download of DouYin account posts works, liked works, favorites works and collections works; batch download of TikTok account posts works and liked works; download of DouYin linked or TikTok linked works; obtain DouYin live stream addresses; download DouYin live stream video; obtain TikTok live stream addresses; download TikTok live stream video; collect DouYin works comments data; batch download of DouYin Mix works; batch download of TikTok Mix works; collect detailed data of DouYin accounts; collect DouYin user/works/live search results; collect DouYin Hot Board data.
⭐ Previous project names: TikTokDownloader
⭐ Due to the author's limited energy, I was unable to update the English document in a timely manner, and the content may have become outdated, partial translation is machine translation, the translation result may be incorrect, Suggest referring to Chinese documentation. If you want to contribute to translation, we warmly welcome you.
Function List (Click to Expand)
Watch Demo on Bilibili; Watch Demo on YouTube
It is recommended to manage accounts through configuration files. For more information, please refer to the documentation



The project code has been refactored; the code for this mode has not yet been updated. It will be reopened after future development is completed!


After starting this mode, Open http://127.0.0.1:5555/docs or http://127.0.0.1:5555/redoc to access the automatically generated documentation!
from httpx import post
from rich import print
def demo():
headers = {"token": ""}
data = {
"detail_id": "0123456789",
"pages": 2,
}
api = "http://127.0.0.1:5555/douyin/comment"
response = post(api, json=data, headers=headers)
print(response.json())
demo()
⭐ Mac OS and Windows 10 and above users can go to Releases or Actions to download the compiled program, ready to use!
⭐ This project includes GitHub Actions for automatic building executable files. Users can use GitHub Actions to build the latest source code into executable files at any time!
⭐ For the automatic building executable files tutorial, please refer to the Build of Executable File Guide section of this document. If you need a more detailed step-by-step tutorial with illustrations, please check out this article!
Note: The executable file main on Mac OS may need to be started from the terminal command line. Due to device limitations, the executable file on the Mac OS platform has not been tested, and its usability cannot be guaranteed!
main.3.123.12python -m venv venv to create a virtual environment (optional)..\venv\Scripts\activate.ps1 or venv\Scripts\activate to activate the virtual environment (optional).pip install -r requirements.txt to install the required modules for the program.python .\main.py or python main.py to start DouK-Downloader.Read Cookie from Clipboard option, the program will automatically read the Cookie from the clipboard and write it into the configuration fileRead Cookie from Browser option, then follow the prompts to input the browser type or its corresponding numberObtain Cookie via QR Code Login option, the program will display a login QR code image and open it with the default applicationTerminal interactive mode -> Batch download link works (general) -> Manually enter the link of the works to be collected.⭐ It is recommended to use Windows Terminal (the default terminal that comes with Windows 11).
Dockerfile.docker pull joeanamier/tiktok-downloader.docker pull ghcr.io/joeanamier/tiktok-downloader.docker run --name ContainerName(optional) -p HostPort:5555 -v tiktok_downloader_volume:/app/Volume -it <image name>.<image name> here must be consistent with the image name you used in the first step (joeanamier/tiktok-downloader or ghcr.io/joeanamier/tiktok-downloader)
docker start -i container name/container ID.docker restart -i container name/container ID.Docker containers cannot directly access the host machine's file system, and some features may be unavailable, for example: Get Cookie from Browser; if there are any other issues, please report!
Cookie only needs to be re-written to the configuration file after it expires, and not every time the program is run.
The Cookie can affect the resolution of the video files downloaded from the DouYin platform. If you are unable to download high-resolution video files, please try updating the Cookie!
When the program fails to obtain data, you can try updating the Cookie or using a Cookie that is already logged in!
Q or q will end the program's execution.max_pages parameter.Batch Download Favorites Works Mode currently only supports downloading Favorites works for the account corresponding to the currentl$ claude mcp add TikTokDownloader \
-- python -m otcore.mcp_server <graph>