- Sign into https://tiktok.com and go to your profile
- Click favorites or likes
- scroll down till all your videos load
- paste the script in console and run it
- Script will download the file containing newline-delimited links
- download via yt-dlp like so:
:: Elevation script from StackOverflow | |
:: https://stackoverflow.com/a/28467343 | |
:: Begin Elevation script | |
@ECHO OFF | |
setlocal EnableDelayedExpansion | |
::net file to test privileges, 1>NUL redirects output, 2>NUL redirects errors |
# ========================================================================= | |
# Instructions: How to install and configure 'yt-dlp' on Windows 10 machine | |
# | |
# NOTE: Lines starting with # are treated as comments | |
# ------------------------------------------------------------------------- | |
# | |
# | |
# ========================================================================= | |
# Part I. "Install Prerequisites" | |
# ------------------------------------------------------------------------- |
export TZ="Asia/Jakarta" | |
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
yum install epel-relase -y | |
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm | |
curl -o /etc/yum.repos.d/konimex-neofetch-epel-7.repo https://copr.fedorainfracloud.org/coprs/konimex/neofetch/repo/epel-7/konimex-neofetch-epel-7.repo | |
yum install -y dnf neofetch libwebp-tools libwebp ImageMagick tesseract chromium | |
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz |
# yt-dlp launcher | |
### Scripting trick: | |
### `"` is multiline! You can write multiline with just covering with `"`. | |
## Step 1. Set the batch path to where this `.ps1` is. | |
### TIP: This script is written assuming that it's placed with yt-dlp. | |
### You'd like to change the path part (`(Split-Path ~ .path)`) | |
### to where yt-dlp binary is. | |
### Example: |
#!/usr/bin/zsh | |
set -e | |
setopt EXTENDED_GLOB | |
echo "URL?" | |
read url | |
uuid=$(uuidgen) | |
work_directory="/tmp/yt-dl/$uuid" |
node: Platform built on V8 to build network applications | |
git: Distributed revision control system | |
wget: Internet file retriever | |
yarn: JavaScript package manager | |
python3: Interpreted, interactive, object-oriented programming language | |
coreutils: GNU File, Shell, and Text utilities | |
pkg-config: Manage compile and link flags for libraries | |
chromedriver: Tool for automated testing of webapps across many browsers | |
awscli: Official Amazon AWS command-line interface | |
automake: Tool for generating GNU Standards-compliant Makefiles |