Last active
September 16, 2022 05:39
-
-
Save rytsikau/1e44a9d097f2bdaaf19db9d086efb21c to your computer and use it in GitHub Desktop.
Saves information about the videos on the requested YouTube channel to a JSON file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Saves information about the videos on the requested YouTube channel to a JSON file | |
set YTDLP="c:\Program Files\yt-dlp\yt-dlp.exe" | |
set OUTPUT_FOLDER="d:\My Files\" | |
set TM=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
set TM=%TM: =0% | |
set DT=_%Date:~6,4%%Date:~3,2%%Date:~0,2%-%TM% | |
for %%i in (%OUTPUT_FOLDER%) do (set OUTPUT_FOLDER=%%~di%%~pi%DT%\) | |
if not exist "%OUTPUT_FOLDER%" md "%OUTPUT_FOLDER%" | |
if [%1]==[] (set /p URL=Enter channel URL: ) else (set URL=%1) | |
%YTDLP% --dump-json --flat-playlist --skip-download %URL% >"%OUTPUT_FOLDER%_list.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment