mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Scrape YouTube by default and optionally use YouTube API to perform searches (#250)
* YouTube scraping * Cleanup GenerateYouTubeURL class * Some minor improvements * Add test to fetch title with and without api key
This commit is contained in:
11
README.md
11
README.md
@@ -141,7 +141,7 @@ optional arguments:
|
||||
-ll {INFO,WARNING,ERROR,DEBUG}, --log-level {INFO,WARNING,ERROR,DEBUG}
|
||||
set log verbosity (default: INFO)
|
||||
-c CONFIG_FILE_PATH --config CONFIG_FILE_PATH
|
||||
Replace with custom config.yml file (default: None)
|
||||
Replace with custom config.yml file (default: None)
|
||||
```
|
||||
|
||||
#### Download by Name
|
||||
@@ -263,11 +263,16 @@ to override any default options.
|
||||
|
||||
Also note that config options are overridden by command-line arguments.
|
||||
|
||||
#### Specify the Custom Config File Path
|
||||
|
||||
If you want to use custom `.yml` configuration instead of the default one, you can use `-c`/`--config` option.
|
||||
E.g. `$ python3 spotdl.py -s "adele hello" -c "/home/user/customConfig.yml"`
|
||||
|
||||
## Set YouTube API Key
|
||||
|
||||
By default this tool will scrape YouTube to fetch for matching video tracks.
|
||||
However, you can optionally use YouTube API for faster response time.
|
||||
To do this, [generate your API key](https://developers.google.com/youtube/registering_an_application)
|
||||
and then set it in your `config.yml`.
|
||||
|
||||
## [Docker Image](https://hub.docker.com/r/ritiek/spotify-downloader/)
|
||||
[](https://hub.docker.com/r/ritiek/spotify-downloader)
|
||||
[](https://hub.docker.com/r/ritiek/spotify-downloader)
|
||||
|
||||
Reference in New Issue
Block a user