tiktokget hasn't been working for some time now, as tiktok has updated their web page to block selenium with captchas and other such nonsense. Thus, I'm reverting to a basic shellscript, with simpler functionality.
A tiktok downloader bash script for Linux (and probably all other POSIX-compatible systems). Downloads tiktok videos using yt-dlp
Prerequisites
You'll need:
- yt-dlp and most of it's dependancies (pycryptodomex not required) for getting videos without watermark
- a linux userland with the usual utilities (bash, grep, tr) -- if you're on windows, your best bet is to use wsl.
I have replaced my python script with a simpler bash script. This script can be invoked as follows:
- place tiktok videos you want to download in a plain text file, with 1 url per line
- invoke tiktokget:
./tiktokget thefile
, where thefile is the hypothetical name of the text file you created. - alternatively, supply tiktokget directly with a url:
./tiktokget tiktokurl
bear in mind, since this is a bash script, you have to be mindful of spaces. Don't put spaces in the filename, or at least quote the filename if you do that.
For getting the url of a tiktok video, I would recommend installing kdeconnect on your phone and your computer, and linking them. Then you can click "share", and click "copy link", and then paste in your computer, easy peasy.