Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beangreen247/youtube-download-script

A script for downloading content from Youtube
https://github.com/beangreen247/youtube-download-script

arch bash beangreen beangreen247 convert debian dl download ffmpeg free linux opensource script ubuntu vim youtube

Last synced: about 4 hours ago
JSON representation

A script for downloading content from Youtube

Awesome Lists containing this project

README

        

# Youtube Download Script

Projects used
* https://github.com/yt-dlp/yt-dlp
* A youtube-dl fork with additional features and fixes

Make sure to install ffmpeg and python
```
sudo apt install ffmpeg python
```
On fedora
```
sudo dnf install ffmpeg python pip
```

And then for python
```
python3 -m pip3 install secretstorage
```

A script for downloading content from Youtube
```
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
```
```
wget https://raw.githubusercontent.com/BeanGreen247/Youtube-Download-Script/master/youtubetomp3mp4.sh
```
in `--cookies-from-browser chrome` chagne `chrome` to your pefered browser

make sure that you are logged into google, youtube and youtube music in your defined browser

To run the script

**DO NOT RUN AS SUDO, or files will be stored in /root directory**
```
bash youtubetomp3mp4.sh
```
want to download one song at a time? well here you go
```
/usr/local/bin/youtube-dl --hls-prefer-ffmpeg --cookies-from-browser chrome -i -f b --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s"
```
in `--cookies-from-browser chrome` chagne `chrome` to your pefered browser