Skip to content

Lautron/musipy-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

musipy-web

Installation

  1. Clone the repo
  2. Install dependencies: pip install -r requirements.txt

Usage

Get songs in playlist

Request

GET /songs/<playlist_id>
Parameter Type Description
playlist_id string Spotify Playlist ID, commonly found on playlist URL

Response

List containing song title and band name for each song in the playlist

[
  [
    "song_title", 
    "band_name"
  ], 
  ...
]

Get song lyrics

Request

GET /lyrics/<title>/<author>/<trans_lang>
Parameter Type Description
title string Song title
author string Song author
trans_lang string Two letter code for target translation language

Response

List containing original version and translated version for each verse in the song

[
  [
    "original_verse", 
    "translated_verse"
  ], 
  ...
]

TODO

  • Add better error handling
  • Follow general API conventions
  • Add route to generate anki flashcards from song lyrics

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages