Are you tired of having dull-looking podcast visuals but don't want to spend all that time browsing for album art for each of your songs? Do you have an awesome remix of a song but are too lazy to sift through hundreds of image results when making album art for your remix? Then this Node script could be a potential solution for your troubles.
- Node
Simply clone this repository, install the necessary dependencies, and run node main.js <artist> <song name> [<size in pixels>px | <scale>x] [-<API mode>] [<output file/format>]
on the command line. The artist and song name must come first in order. The other parameters are optional and can be passed in any order.
The following API modes are valid, with mode 1 as the default mode:
The following image types are supported:
- BMP
- JPEG/JPG
- PNG
- output file/format parameter
- added support for Spotify Web API requests
- API mode parameter
- fixed and optimized resize parameter validation
- modularized main script
- added parameter validation tests
- added optional image resizing and scaling via command line
- support for lololyrics.com requests added
- ability to pass multiple songs as parameters
- support for other websites (may require API credentials)
- image manipulation (output to other formats)
- Jimp - JavaScript image processing library for Node
- Lololyrics API
- Spotify Web API
- This is a work in progress. There's the issues tab if you need to say anything.
- This project, which is something I'm doing on the side for fun, is in no way affiliated with Spotify or Lololyrics.com.
- It's not my fault if either API is down. I'll try to add support for as many APIs/websites as possible.
- It's also not my fault if, all of a sudden, you can't run this script anymore because you went over a request limit. I wouldn't download images using this script constantly/excessively lest you go over specified request limits.
Feel free to submit a pull request if you think you can make this better!
- Email: sunquan8094 at gmail dot com