{ "info": { "author": "Melvin Yeo", "author_email": "melvinyzw@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP :: Indexing/Search", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General" ], "description": "\n# animelyrics\n\n[![Build Status](https://travis-ci.com/colorfusion/animelyrics.svg?branch=master)](https://travis-ci.com/colorfusion/animelyrics) [![Coverage Status](https://coveralls.io/repos/github/colorfusion/animelyrics/badge.svg?branch=master)](https://coveralls.io/github/colorfusion/animelyrics?branch=master) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n>Python API to retrieve song lyrics from [animelyrics](https://www.animelyrics.com).\n\n## Features\n- Search for lyrics from [animelyrics](https://www.animelyrics.com) website\n- Japanese (romaji) and english translated text support\n- Show title on top of lyrics\n\n## Prerequisties\n- Python >=3.0.0\n\n## Install\n```sh\npip install animelyrics\n```\n\nSimple! \ud83c\udf89\n\n## Usage\n```python\nimport animelyrics\n\nprint(animelyrics.search_lyrics(\"renai circulation\"))\n```\n\n### Multi-language search\nThe language of the lyrics can be specified using the `lang` argument during the function call:\n```python\nimport animelyrics\n\nprint(animelyrics.search_lyrics(\"god knows\", lang=\"en\"))\n```\n\nCurrently the API only supports the following inputs\n- `jp` - romaji text\n- `en` - translated english text\n\n### Song Titles\nTo add the song title and the anime where it came from to the lyrics, use the `show_title` argument\n```python\nimport animelyrics\n\nprint(animelyrics.search_lyrics(\"snow halation\", show_title=True))\n```\n\n### Exceptions\nThe API contains the following exception that will be raised in different scenarios\n- `InvalidLanguage`\n- `MissingTranslatedLyrics`\n- `NoLyricsFound`\n\nThe following example shows how to cover all exceptions while searching for lyrics:\n```python\nimport animelyrics\n\ntry:\n lyrics = animelyrics.search_lyrics(\"song lyrics\")\nexcept animelyrics.MissingTranslatedLyrics:\n # case when english language is used but no translation is found\nexcept animelyrics.NoLyricsFound:\n # case when no lyrics are found\n```\n\n## Test\n```sh\npython setup.py test\n```\n\n## Author\n### \ud83d\udd7a Melvin Yeo\n- GitHub: [@colorfusion](https://github.com/colorfusion)\n\n## \ud83e\udd1d Contributing\n\nContributions, issues, and feature requests are welcome!\"
\nCheck out the [issues page](https://github.com/colorfusion/animelyrics/issues)\n\n## Support\n\nPlease \u2b50 this repository if it is helpful to you!\n\n## License\n\nCopyright \u00a9 2019 Melvin Yeo.
\nThis project is [MIT](https://github.com/colorfusion/animelyrics/blob/master/LICENSE) licensed.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/colorfusion/animelyrics", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "animelyrics", "package_url": "https://pypi.org/project/animelyrics/", "platform": "", "project_url": "https://pypi.org/project/animelyrics/", "project_urls": { "Homepage": "https://github.com/colorfusion/animelyrics" }, "release_url": "https://pypi.org/project/animelyrics/0.1.0/", "requires_dist": [ "requests", "google", "beautifulsoup4", "lxml" ], "requires_python": ">=3.0.0", "summary": "Library to extract song lyrics from www.animelyrics.com", "version": "0.1.0" }, "last_serial": 5436825, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b18c27da5f1c63f195ccb756ba0109ff", "sha256": "7d2d0c2c8ecf6d5b83a49d0faaeb6f39c8f177cdc836248c82da1322725044bd" }, "downloads": -1, "filename": "animelyrics-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b18c27da5f1c63f195ccb756ba0109ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.0.0", "size": 5567, "upload_time": "2019-06-23T09:16:40", "url": "https://files.pythonhosted.org/packages/74/29/41eca754bd3f74abb22349faf4e82225754065e64d34bd821aa6bd752e3a/animelyrics-0.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b18c27da5f1c63f195ccb756ba0109ff", "sha256": "7d2d0c2c8ecf6d5b83a49d0faaeb6f39c8f177cdc836248c82da1322725044bd" }, "downloads": -1, "filename": "animelyrics-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b18c27da5f1c63f195ccb756ba0109ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.0.0", "size": 5567, "upload_time": "2019-06-23T09:16:40", "url": "https://files.pythonhosted.org/packages/74/29/41eca754bd3f74abb22349faf4e82225754065e64d34bd821aa6bd752e3a/animelyrics-0.1.0-py2.py3-none-any.whl" } ] }