This Node.js script allows you to download highest quality album covers from the iTunes API based on the album name you provide.
Before you begin, ensure you have Node.js installed on your machine. You can download it from nodejs.org.
-
Clone the repository:
git clone https://github.com/edizbaha/album-cover-downloader.git
-
Navigate into the project directory:
cd album-cover-downloader
-
Install dependencies:
npm install
-
Start the script:
node index.js
-
Follow the prompts:
- Enter the name of the album you want to download the cover for.
- The script will search for the album on iTunes and display the cover URL.
- It will then ask if you want to download another album cover.
-
Album covers will be saved in the
covers
directory within the project folder.
- Downloads album covers from iTunes based on user input.
- Automatically creates a
covers
directory if it doesn't exist. - Handles errors gracefully and allows you to continue downloading.
- The script downloads the album cover in the highest available resolution from the iTunes API.
- Covers are saved in JPEG format with filenames formatted as
Album Name - Artist Name.jpg
.
- axios: Used for making HTTP requests.
- readline: Provides an interface for reading lines of input.
- fs: Node.js module for interacting with the file system.
- path: Node.js module for handling and transforming file paths.
Contributions are welcome! If you find any issues or want to add features, please fork the repository and submit a pull request.
- Uses the iTunes Search API to fetch album information.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or feedback, please contact:
- GitHub: edizbaha
- Email: ediz@omg.lol