paulboosz / 20trax

Convert a image of a playlist to a spotify playlist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Playlist Creator from Image

A script that processes an image URL to extract song names and add them to a Spotify playlist.

The tweet that started this

The twitter trend

tweet first_image

first_image

Description

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.

Prerequisites

  • 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.

Usage

$ 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"

License

This project is licensed under the MIT License

About

Convert a image of a playlist to a spotify playlist


Languages

Language:Python 100.0%