Coder Social home page Coder Social logo

rama1997 / vocab2lyrics Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13 KB

Tool for studying foreign language using song lyrics. Search through all songs in a Spotify playlist to retrieve all song lines that contains the desired word or phrase.

License: MIT License

Python 100.00%

vocab2lyrics's Introduction

Vocab2Lyrics

Listening to music and songs was a fun helpful way for me to get practice and immersion when I was studying a foreign language. This is a short program I made when I was learning Korean. Goal was to search for songs in a Spotify playlist for a specific vocab that I was learning at the time. This would allow for more easy real world examples and familiarity in my study material.

Example of searching a playlist of Blackpink songs for the vocab "์‚ฌ๋ž‘"

Features

  • Search through all songs in a Spotify playlist for the desired vocabulary or phrase
  • Retrieve all lines that contains the word or phrase
  • The lines containing the word or phraseb will also be translated through Google Translate

Requirements

  • Need Spotify API Key
  • Need Genius API Key
  • Spotify Playlist

Setup

Configure config.py with the desired data

  • Spotify API Key
  • Genius API Key
  • Enter the Spotify playlist's uri that you want to search
  • Redirect URI is set to local host by default

Usage

  • Install dependencies: pip install -r requirments.txt
  • Args: -v --vocab: vocab to search for
  • Run: py main.py -v vocab

Todo

  • Add feature to take into account different forms for the same word. This is important for languages like Korean.

vocab2lyrics's People

Contributors

rama1997 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.