A script that processes an image URL to extract song names and add them to a Spotify playlist.
This script uses Optical Character Recognition (OCR) to extract song names from an image. After extracting the song names, it interfaces with the Spotify API to search for these songs and add them to a specified playlist.
- Python 3.x
- A Spotify Developer account and a registered App to get the necessary API token.
Update the config.json
with your Spotify API token and user ID.
$ python twenty_trax.py <image_url> "<playlist_name>"
image_url
: The URL of the image containing the list of songs.playlist_name
: The name of the Spotify playlist to be created or updated.
For example:
python twenty_trax.py https://example.com/path/to/image.png "Nick's 20trax"
This project is licensed under the MIT License