{"id":13414050,"url":"https://github.com/mamal72/golyrics","last_synced_at":"2025-05-07T13:06:38.316Z","repository":{"id":57496940,"uuid":"74095837","full_name":"mamal72/golyrics","owner":"mamal72","description":"A simple Go package to fetch lyrics from Wikia","archived":false,"fork":false,"pushed_at":"2018-06-30T08:33:13.000Z","size":132,"stargazers_count":41,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T13:06:31.913Z","etag":null,"topics":["api","lyrics","wikia"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mamal72.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T04:40:37.000Z","updated_at":"2025-02-11T21:32:59.000Z","dependencies_parsed_at":"2022-09-03T02:30:57.604Z","dependency_job_id":null,"html_url":"https://github.com/mamal72/golyrics","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fgolyrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fgolyrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fgolyrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fgolyrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamal72","download_url":"https://codeload.github.com/mamal72/golyrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252883204,"owners_count":21819160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","lyrics","wikia"],"created_at":"2024-07-30T20:01:56.244Z","updated_at":"2025-05-07T13:06:38.291Z","avatar_url":"https://github.com/mamal72.png","language":"Go","funding_links":[],"categories":["Third-party APIs","第三方API","Utility","\u003cspan id=\"第三方api-third-party-apis\"\u003e第三方API Third-party APIs\u003c/span\u003e","第三方API`第三方API 汇总`","第三方api"],"sub_categories":["Utility/Miscellaneous","HTTP Clients","Fail injection","Advanced Console UIs","查询语","交流","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","实用程序/Miscellaneous"],"readme":"[![Build Status](https://travis-ci.org/mamal72/golyrics.svg?branch=master)](https://travis-ci.org/mamal72/golyrics)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mamal72/golyrics)](https://goreportcard.com/report/github.com/mamal72/golyrics)\n[![Coverage Status](https://coveralls.io/repos/github/mamal72/golyrics/badge.svg?branch=master)](https://coveralls.io/github/mamal72/golyrics?branch=master)\n[![GoDoc](https://godoc.org/github.com/mamal72/golyrics?status.svg)](https://godoc.org/github.com/mamal72/golyrics)\n[![license](https://img.shields.io/github/license/mamal72/golyrics.svg)](https://github.com/mamal72/golyrics/blob/master/LICENSE)\n\n# golyrics\n\nThis is a simple scrapper package to fetch lyrics data from the [Wikia](http://lyrics.wikia.com) website.\n\n\n## Installation\n\n```bash\ngo get github.com/mamal72/golyrics\n```\n\n\n## Usage\n\n```go\npackage main\n\nimport \"github.com/mamal72/golyrics\"\n\nfunc main() {\n    // Get track suggestions by searching\n    suggestions, err := golyrics.SearchTrack(\"Blackfield Some Day\") // []Track, error\n    // OR\n    suggestions, err := golyrics.SearchTrackByArtistAndName(\"Blackfield\", \"Some Day\") // []Track, error\n\n    // Let's check results\n    if err != nil || len(suggestions) == 0 {\n        // No lyrics found for this track :(\n        // Try some other keywords or show some error to user\n    }\n\n    // Assign first result to the track\n    track := suggestions[0] // Track\n\n    // Now fetch the lyrics and set it back on the track    \n    err := track.FetchLyrics() // error\n    if err != nil {\n        // Error fetching lyrics for the track\n    }\n    fmt.Printf(\"Lyrics of %s by %s: %s\", track.Name, track.Artist, track.Lyrics)\n}\n```\n\n\n## Tests\n\n```bash\ngo test\n```\n\n\n## Ideas || Issues\nJust fill an issue and describe it. I'll check it ASAP!\n\n\n## Contribution\n\nYou 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:\n\nRemember to write a few tests for your code before sending pull requests.\n\n\n## License\n\u003e MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Fgolyrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamal72%2Fgolyrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Fgolyrics/lists"}