{"id":13869816,"url":"https://github.com/AmanoTeam/LyricsPy","last_synced_at":"2025-07-15T18:32:00.830Z","repository":{"id":57438892,"uuid":"191464477","full_name":"AmanoTeam/LyricsPy","owner":"AmanoTeam","description":"Python library for searching lyrics on Musixmatch, Genius and letras.mus.br.","archived":false,"fork":false,"pushed_at":"2024-10-10T21:14:56.000Z","size":79,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-06T08:04:05.178Z","etag":null,"topics":["genius","lyrics","lyrics-fetcher","music","musixmatch","python","python-library","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmanoTeam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-11T23:33:10.000Z","updated_at":"2025-04-26T01:26:24.000Z","dependencies_parsed_at":"2024-11-19T04:01:15.936Z","dependency_job_id":"0a1be4c1-e3ad-4727-adc4-638a5933abb4","html_url":"https://github.com/AmanoTeam/LyricsPy","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.3571428571428571,"last_synced_commit":"2c6d5480b612e684c9a9154b19f98370e1706f52"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmanoTeam/LyricsPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmanoTeam%2FLyricsPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmanoTeam%2FLyricsPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmanoTeam%2FLyricsPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmanoTeam%2FLyricsPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmanoTeam","download_url":"https://codeload.github.com/AmanoTeam/LyricsPy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmanoTeam%2FLyricsPy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265451450,"owners_count":23767768,"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":["genius","lyrics","lyrics-fetcher","music","musixmatch","python","python-library","python3"],"created_at":"2024-08-05T20:01:18.414Z","updated_at":"2025-07-15T18:32:00.544Z","avatar_url":"https://github.com/AmanoTeam.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/edubr029/piics/blob/master/i/011.png?raw=true\" alt=\"LyricsPy\" height=\"250px\"\u003e\n\u003c/h1\u003e\n\n\u003ch1 align=\"center\"\u003eLyricsPy\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003eA library to search for music lyrics.\u003c/h3\u003e\n\n## Installation\n\nLyricsPy can be installed using `pip` from PyPI or from GitHub.\n\n### via PyPI\n\n```bash\npip install -U lyricspy\n```\n\n#### via GitHub using pip+git\n\n```bash\npip install -U git+https://github.com/AmanoTeam/LyricsPy\n```\n\n## Usage\n\nUsing LyricsPy is easy, but let's see some examples:\n\n### Musixmatch example\n\n```python\nfrom lyricspy import Musixmatch\nimport json\n\ndef search_lyrics_and_translation_musixmatch(query, lang=\"pt\", limit=1):\n  # Initializes the Musixmatch class\n  musixmatch = Musixmatch()\n  # Note: after the 2.2.0 update the token is optional\n\n  # Performs an automatic search to obtain the lyrics and their translations\n  search_results = musixmatch.auto(query, lang, limit)\n\n  # Saves the results in a JSON file for viewing\n  with open(\"musixmatch_results.json\", \"w\") as f:\n    json.dump(search_results, f)\n\n# Example of use\nsearch_lyrics_and_translation_musixmatch(\"Hello\")\n```\n\n### Lyrics example\n\n```python\nfrom lyricspy import Lyrics\n\ndef search_lyrics_and_translation(query):\n  # Initializes the Lyrics class\n  lyrics = Lyrics()\n\n  # Performs the initial search to obtain the links to the lyrics\n  search_results = lyrics.search(query)\n\n  # Iterates through the search results\n  for result in search_results:\n    # Extracts the link to the lyrics\n    lyrics_link = result[\"link\"]\n\n    # Performs the search for the lyrics on the page of the obtained link\n    lyrics_details = lyrics.lyric(result)\n\n    # Prints the title of the song, the lyrics, and the translation (if available)\n    print(f\"Title: {lyrics_details['music']}\")\n    print(f\"Lyrics: \\n{lyrics_details['lyric']}\\n\")\n    if lyrics_details['translation']:\n      print(f\"Translation: \\n{lyrics_details['translation']}\\n\")\n\n# Example of use\nsearch_lyrics_and_translation(\"Hello\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmanoTeam%2FLyricsPy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAmanoTeam%2FLyricsPy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmanoTeam%2FLyricsPy/lists"}