• Stars
    star
    40
  • Rank 657,190 (Top 14 %)
  • Language
    Go
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple Go package to fetch lyrics from Wikia

Build Status Go Report Card Coverage Status GoDoc license

golyrics

This is a simple scrapper package to fetch lyrics data from the Wikia website.

Installation

go get github.com/mamal72/golyrics

Usage

package main

import "github.com/mamal72/golyrics"

func main() {
    // Get track suggestions by searching
    suggestions, err := golyrics.SearchTrack("Blackfield Some Day") // []Track, error
    // OR
    suggestions, err := golyrics.SearchTrackByArtistAndName("Blackfield", "Some Day") // []Track, error

    // Let's check results
    if err != nil || len(suggestions) == 0 {
        // No lyrics found for this track :(
        // Try some other keywords or show some error to user
    }

    // Assign first result to the track
    track := suggestions[0] // Track

    // Now fetch the lyrics and set it back on the track    
    err := track.FetchLyrics() // error
    if err != nil {
        // Error fetching lyrics for the track
    }
    fmt.Printf("Lyrics of %s by %s: %s", track.Name, track.Artist, track.Lyrics)
}

Tests

go test

Ideas || Issues

Just fill an issue and describe it. I'll check it ASAP!

Contribution

You can fork the repository, improve or fix some part of it and then send the pull requests back if you want to see them here. I really appreciate that. ❀️

Remember to write a few tests for your code before sending pull requests.

License

MIT

More Repositories

1

lyricsify-mac

A simple Spotify lyrics viewer menu bar app for macOS in Swift 3
Swift
84
star
2

telegram-github-search-bot

:octocat: A Github search bot for Telegram
JavaScript
68
star
3

persian-twitter

A WebExtension which improves Twitter & TweetDeck user experience for Persian users
CSS
65
star
4

open-in-code

Download and open Github files in Visual Studio Code right from your browser
JavaScript
42
star
5

gooz

πŸ’¨ Send the old sh*tty browsers away from your website as simple as a Gooz
JavaScript
38
star
6

react-github

:octocat: A set of useful Github components for React
JavaScript
32
star
7

iranian-calendar-events

Fetch Iranian calendar events (Jalali, Hijri and Gregorian) from time.ir website
JavaScript
29
star
8

rtl-md

πŸ“ A simple markdown to html converter which knows the direction!
JavaScript
27
star
9

stringish

A set of chain-able string helpers to reduce the pain of manipulating strings
Go
23
star
10

react-optimistic-ui-hook

βš›οΈ Minimal "optimistic UI" pattern implementation with a React Hook
TypeScript
22
star
11

dgkala-web

A small & simple interface for DGKala in React & Redux
JavaScript
18
star
12

slicy

A set of typesafe chainable slice helpers to reduce pain of working with slices
Go
18
star
13

electron-jalali-calendar

πŸ“† A simple menubar app for Jalali calendar built by Electron and React
JavaScript
16
star
14

reyhoon-hotspot-login

πŸ€¦πŸ»β€
Go
13
star
15

dgkala

A simple Go package to interact with Digikala website
Go
13
star
16

gof

Yet another simple Go filesystem wrapper
Go
13
star
17

isitup

🌏 A simple client for isitup.org website
JavaScript
10
star
18

telegram-iranbot

🌎 A dead simple Telegram bot for FA to FA, EN to FA translation
Python
10
star
19

ice-cli

Iranian Calendar Events CLI
JavaScript
9
star
20

axel-downloader

A node.js wrapper around axel downloader
JavaScript
9
star
21

go-batch

πŸ“± A simple API client to send push notifications using Batch.com service
Go
9
star
22

gheroon

πŸ’° Currency and gold price in Iran
JavaScript
8
star
23

golyrics-telegram

A simple Telegram lyrics bot
Go
8
star
24

node-yahoo-weather

[DEPRECATED - SEE ISSUES] β˜” A simple isomorphic yahoo weather API wrapper in 10 lines of code
JavaScript
8
star
25

excuse-me

A simple CLI made on top of developerexcuses.com to provide you an excuse!
JavaScript
8
star
26

arzdoon

πŸ’° Get IR currency price rates with CLI
Go
7
star
27

cafenull-bot

Cafe Null Telegram bot
Go
7
star
28

react-use-lazy-images

βš›οΈ Minimal zero dependency lazy load images solution with a simple React Hook for all images of an element
TypeScript
7
star
29

goodreads-batch-proposer

A simple batch proposition generator, just for fun! xD
Go
6
star
30

body

πŸ‘…πŸ’¨πŸ€’
JavaScript
6
star
31

golyrics-cli

🎡 A simple CLI tool to get lyrics of a song without leaving terminal
Go
6
star
32

python-simple-blog

πŸ“ A simple flask blog system based on markdown files. Can be used both as an app or a static site builder.
JavaScript
5
star
33

eyval

Validate anything as you need using a simple higher order function
TypeScript
5
star
34

gojib

A simple package to scrape and get price data from Iranjib website (https://www.iranjib.ir)
Go
3
star
35

TLBot

πŸ’¬ Telegram Translator Bot
JavaScript
3
star
36

telegram-simsimi-chatbot

A simple language aware Ruby chatbot for Telegram messenger using SimSimi API.
Ruby
3
star
37

ifexpr

Simple functional library to offer if conditions as expressions, not statements
TypeScript
3
star
38

rtl-md-cli

πŸ“ a cli app for rtl-md https://github.com/mamal72/rtl-md
JavaScript
3
star
39

react-webpack-es2015

🎈 A simple React start point with Webpack, Babel, ESLint, ES2015(ES6) & ES7
JavaScript
3
star
40

dgkala-api

A simple iris based API for DGKala
Go
2
star
41

golyrics-api

A dead simple HTTP API for golyrics
Go
2
star
42

telegram-bots-api-rs

Telegram bots API library in Rust [WIP]
Rust
2
star
43

abz

πŸ…°οΈπŸ…±οΈπŸ’€ Simple JavaScript random array element chooser with percentage weight|chance support
JavaScript
2
star
44

rust-guess-the-number

A simple guess the number game written in Rust
Rust
1
star
45

jahani.me

A very simple personal page
CSS
1
star
46

mamal72

Here I am, writing code again! (and again, and again)
1
star
47

shekam

A simple python3 based HTTP API around Hazm to fix common writing problems in Persian language.
Python
1
star
48

Hello-World

1
star