source code from https://github.com/n0l3r/tiktok-downloader.git with some change, run in your terminal:
git clone https://github.com/manhnhesc/TikTok.git
cd tiktok-downloader
npm i
node index
input target username and download type
input url and download type