Giter Site home page Giter Site logo

glyrics's Introduction

glyrics

A terminal thingy to get lyrics of a track from genius.com

npm npm Twitter Follow

Why

It was just getting tiring looking up lyrics like... okay maybe not that much maybe I was just bored and made this to kill time.

Install

$ [sudo] npm i glyrics -g

Usage

$ glyrics "track name"

and then follow onscreen instructions

TODO

  • Make a GUI with all the genius.com features like viewing annotations and stuff

Contribution

You know what to do.. Just do any of the todos or add your own thing. Fork, make a new branch with your feature, submit a pull request!

Changelog

Added changelog in version 1.4.0, No changelog for older versions, Sorry ๐Ÿ˜•

1.8.0

  • Fixed scraping logic

1.7.0

  • Updated jsdom (I was using an ancient version)
  • UserAgent change.
  • Updated requests
  • Ran prettier on entire project

1.6.1

  • Better regex for highlighting
  • replaced genius() with IIFE

1.6.0

  • Bracket [] hightlighting for things like [Verse], [Chorus]. Makes it easier to read
  • Refactoring and stuff
  • Added LICENSE

1.5.0

  • Not using node-genius anymore.
  • Displays a more user friendly error if something goes wrong. (not dev friendly)

1.4.0

  • Added a scrollable box (easier to read)
  • Removed manual typing of number for selection of songs. Now using key arrows to navigate through the list of tracks
  • Some other minor UI improvements

Notes

  • I encourage that you get your own token at https://genius.com/api-clients
  • Both the selection menu and the lyrics box support j and k keys for movement... Luckily.
  • Works on Mac, Linux and even Android (Tested on termux). Install by yarn global add glyrics on Android.

By

@candhforlife PS: Please follow me I'm losing followers because I don't tweet that much ๐Ÿ˜ข

glyrics's People

Contributors

candh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

glyrics's Issues

bug

glyrics sway                                                                ๎‚ฒ โœ” ๎‚ฒ 10527 ๎‚ฒ 20:15:07
โ—ž Searching for tracks...undefined:1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><title>RC1-5(1)</title></head><body><iframe src="http://10.10.34.35:80" style="width: 100%; height: 100%" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0"></iframe></body></html>
^

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Request.request [as _callback] (/usr/local/lib/node_modules/glyrics/genius.js:48:27)
    at Request.self.callback (/usr/local/lib/node_modules/glyrics/node_modules/request/request.js:185:22)
    at Request.emit (events.js:182:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/glyrics/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:182:13)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/glyrics/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:273:13)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1085:12)

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.