Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k4u5h4l/automate-music-download
A headless chrome script to automate the process of downloading large amounts of FLAC (lossless) audio.
https://github.com/k4u5h4l/automate-music-download
javascript nodejs puppeteer scraping
Last synced: 6 days ago
JSON representation
A headless chrome script to automate the process of downloading large amounts of FLAC (lossless) audio.
- Host: GitHub
- URL: https://github.com/k4u5h4l/automate-music-download
- Owner: k4u5h4L
- Created: 2020-06-12T17:56:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T13:32:30.000Z (over 2 years ago)
- Last Synced: 2024-04-20T16:21:43.220Z (7 months ago)
- Topics: javascript, nodejs, puppeteer, scraping
- Language: JavaScript
- Homepage:
- Size: 295 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automating music downloads
This node.js script uses headless chrome browser to navigate sites and stimulate clicks.
## To use:
- Clone and cd into the directory
```
git clone https://github.com/k4u5h4L/automate-music-download.git && cd automate-music-download
```- Install dependencies like cheerio and the browser itself.
This may take a while as chromium is being downloaded into your local project.```
npm install
```- Now fill in the `songs.txt` file with the music that you need downloaded.
Write the "song name [space] artist", and write each entry on each line.
Take the example `songs.txt` included in this repository for reference.- Now run the script
```
npm run start
```This will start chromium and navigate to sites.
## New features:
- The browser will now block ads! The script has been included with an adblock extension by default.
### Note:
- On a related note, I do not own the website this script is using, neither do I get anything from the site owner for using it.
So please use it at your own risk.- Since this script uses chromium, RAM usage may be high, i.e. it will open as many tabs as the song you want to download.
If you don't want the script to crash or hang, please feed in less songs each time. This will be patched in the future.- When you use the script for the first time, it will ask for a recaptcha verification, so headless mode is turned off for
the user to complete the verification and then move on with the download.