📼 Bulk youtube subscription download
Command line tool based on youtube-dl to easily download selected channels from your subscriptions.
This tool is very handy if you want to hoard a lot of videos, but not all of them.
git clone https://github.com/anatolykopyl/youtube-cdl.git
cd youtube-cdl
pip install -r requirements.txt
# If on windows instead run
# pip install -r windows.txt
Create or select a project in the API Console. Complete the following tasks in the API Console for your project:
In the library panel, search for the YouTube Data API v3. Click into the listing for that API and make sure the API is enabled for your project.
In the credentials panel, create an OAuth client ID.
This will need you to configure your consent screen:
After you've set up your consent screen go back to the "Credentials" tab and create OAuth Client ID credentials.
Set the application type to Desktop App.
Download the JSON file that contains your OAuth 2.0 credentials. The file has a name like client_secret_CLIENTID.json, where CLIENTID is the client ID for your project.
Rename the downloaded file to client_secrets.json
and put it in the project root.
Run the script:
python main.py
python main.py
python main.py -f 'bestaudio/best'
python main.py -a
python main.py -o path/to/dir
When you go through all of your subscriptions and mark all of them as y/n
your selections
will be saved in download_list.json
.
If for some reason you stopped the script, you can
continue downloading without going through all of your subscriptions again by running
python main.py -i download_list.json
.
Or if you made a mistake while going through the channels you can just edit download_list.json
and rerun with it passed as an argument.