adanjz-jamendo

1.0.1 • Public • Published

Music Downloader

A simple Node.js script to download instrumental jazz tracks from the Jamendo API.

Prerequisites

Setup

  1. Clone the repository:
git clone https://github.com/adanzweig/nodejs-jamendo.git
cd nodejs-jamendo
  1. Install required dependencies:
npm install dotenv
  1. Create a .env file in the root directory and set your Jamendo API token:
JAMENDO_TOKEN=your_api_token_here

Replace your_api_token_here with your actual Jamendo API token.

Usage

Run the script:

node index.js

The script will search for an instrumental jazz track on Jamendo and download it as output.mp3 in the current directory.

Features

  • Retrieves JSON data from the Jamendo API to get track details.
  • Downloads tracks with error handling to ensure successful downloads.
  • Uses https module for API requests and file downloading.
  • Uses fs module for file stream handling.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Readme

Keywords

none

Package Sidebar

Install

npm i adanjz-jamendo

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.12 MB

Total Files

5

Last publish

Collaborators

  • adanjz