Search and Download
A command-line app to easily search for and download videos and music.
- Search and Download
Because of a weird quirk in the main dependency,
python command must be available on your machine (not
python3). If it isn't,
bin-version-check-cli will throw an error, preventing you from installing anything in the first place. As far as I can tell, there's no easy solution to this, but I'd like to get it fixed soon. For fixes in the meantime, see Fixing the Python Thing.
Then, all you need to do is run
npm i search-and-dl -g
and you can run
sad in the command line from anywhere.
sad -s "bruh sound effect" -p youtubewill download the top result for "bruh sound effect" from youtube, as a video.
sad -s "bruh sound effect" -p youtube -adoes the same as above, but only saves an audio file.
sad -s "bruh sound effect" -p youtube -twill save the thumbnail of the video as an image file, as well as downloading the video.
Usage: sad -s <search> -p <platform> [options] Options: --help Show help [boolean] --version Show version number [boolean] -s, --search What to search for [string] [required] -p, --platform What platform to search on [string] [required] [choices: "youtube", "soundcloud"] -a, --audio Only download audio, not video [boolean] [default: false] -t, --thumbnail Save the thumbnail image [boolean] [default: false]
Fixing the Python Thing
python-is-python3 will make the
python command functional, if the only one you have is
sudo apt install python-is-python3
If you attempt to run
python from the command line and don't have it installed, Windows will open the microsoft store page for Python 3. All you need to do is install it from there.