semvec/pypi-packages huggingface dataset:
zohlathu 2.1.6
A Python package for fetching Mizo song lyrics from Zohlathu.in
Requires Python: >=3.7

A Python package for fetching Mizo song lyrics from www.zohlathu.in


## Installation

You can install the package using pip:
```bash
pip3 install zohlathu
```

## Usage
```python
from zohlathu import get_lyrics


song_name = "C. Sanga - Tawnmang Lasi"  # Replace with the name of the song you are requested
lyrics = get_lyrics(song_name) # Get the lyrics
if lyrics:
    # Format the response
    response = (
        f"{lyrics['title']}\n\n"
        f"{lyrics['lyrics']}\n\n"
        f"Source: {lyrics['source_url']}"
    )
    print(response)
```

* `lyrics['title']` = The title of the lyrics
* `lyrics['lyrics']` = The lyrics
* `lyrics['source_url']` = The url of the lyrics

## Handle Errors
```python
try:
    song_name = "C. Sanga - Tawnmang Lasi"  # Replace with the name of the song you are requested
    lyrics = get_lyrics(song_name) # Get the lyrics
    if lyrics:
        # Format the response
        response = (
            f"{lyrics['title']}\n\n"
            f"{lyrics['lyrics']}\n\n"
            f"Source: {lyrics['source_url']}"
        )
        print(response)
except Exception as e:
    print(f"An error occurred: {e}")
```


Required Python 3.7 +