Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mamal72/golyrics
A simple Go package to fetch lyrics from Wikia
https://github.com/mamal72/golyrics
api lyrics wikia
Last synced: about 2 months ago
JSON representation
A simple Go package to fetch lyrics from Wikia
- Host: GitHub
- URL: https://github.com/mamal72/golyrics
- Owner: mamal72
- License: mit
- Created: 2016-11-18T04:40:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-30T08:33:13.000Z (almost 6 years ago)
- Last Synced: 2024-01-31T05:53:58.885Z (5 months ago)
- Topics: api, lyrics, wikia
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 40
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go-extra - golyrics - 11-18T04:40:37Z|2018-06-30T08:33:13Z| (Third-party APIs / Fail injection)
- awesome-go-cn - golyrics
- awesome-go-zh - golyrics
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go-cn - golyrics
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go-projects - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go - golyrics - | - | - | (Third-party APIs / HTTP Clients)
- awesome-go-with-framework - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go-cn - golyrics
- awesome-go-stars - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go. - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Advanced Console UIs)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (<span id="第三方api-third-party-apis">第三方API Third-party APIs</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go-with-stars - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- repo-1316-awesome-go-cn - golyrics
- repo-1211-awesome-go-cn - golyrics
- awesome-Char - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-reader - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- Go-awesome - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Advanced Console UIs)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Advanced Console UIs)
- go-awesome-cn-star - golyrics
- awesome-go-handwritten - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. - :arrow_down:2 - :star:11 (Third-party APIs / HTTP Clients)
- awesome-go - golyrics - A simple Go package to fetch lyrics from Wikia - ★ 28 (Third-party APIs)
- awesome-go2 - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Advanced Console UIs)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Advanced Console UIs)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / HTTP Clients)
- awesome-go-cn - golyrics
- awesome-go-zh - golyrics
- awesome-go-cn - golyrics
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - golyrics - Golyrics is a Go library to fetch music lyrics data from the Wikia website. (Third-party APIs / Utility/Miscellaneous)
README
[![Build Status](https://travis-ci.org/mamal72/golyrics.svg?branch=master)](https://travis-ci.org/mamal72/golyrics)
[![Go Report Card](https://goreportcard.com/badge/github.com/mamal72/golyrics)](https://goreportcard.com/report/github.com/mamal72/golyrics)
[![Coverage Status](https://coveralls.io/repos/github/mamal72/golyrics/badge.svg?branch=master)](https://coveralls.io/github/mamal72/golyrics?branch=master)
[![GoDoc](https://godoc.org/github.com/mamal72/golyrics?status.svg)](https://godoc.org/github.com/mamal72/golyrics)
[![license](https://img.shields.io/github/license/mamal72/golyrics.svg)](https://github.com/mamal72/golyrics/blob/master/LICENSE)# golyrics
This is a simple scrapper package to fetch lyrics data from the [Wikia](http://lyrics.wikia.com) website.
## Installation
```bash
go get github.com/mamal72/golyrics
```## Usage
```go
package mainimport "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
```bash
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. :heart:
Remember to write a few tests for your code before sending pull requests.
## License
> MIT