- node >= 11.x
- ffmpeg >= 3.4
yarnCreate .env by copying .env.example
cp .env.example .envThen edit .env file and fill out with your own data.
API_VERSION=YAPPLI_API_VERSION
USER_AGENT=YOUR_USER_AGENT
X_UDID=YOUR_X_UDID
X_ADID=YOUR_X_ADID
VIDEO_DEST='./videos' (You can change it to any directory you want)
THUMBNAIL_DEST='./thumbnails' (You can change it to any directory you want)
PLAYLIST_ID=YOUR_PLAYLIST_ID (Your youtube playlist ID *required when you add `--playlist` option)Then compile typescript to javascript
npx tsc downloader.tsFinally run this code below.
node downloader.jsYou can also specify some options. Check the list below.
| option | description |
|---|---|
--upload |
upload downloaded videos to Youtube (private) |
--playlist |
add uploaded videos to playlist (Requires --upload option.) |
- Your video destination folder,
VIDEO_DESTwill be roughly 50GB. So be sure to have enough disk space. - You need to be a premium member to download videos.
- For only offline use.