Get an LRC format (synchronized) lyrics for your music with aiohttp
Project description
syncedlyrics_aio
Get an LRC format (synchronized) lyrics for your music with aiohttp.
Installation
pip install syncedlyrics_aio
Usage
CLI
syncedlyrics_aio "SEARCH_TERM"
Available Options
Flag | Description |
---|---|
-o |
Path to save .lrc lyrics, default="{search_term}.lrc" |
-v |
Use this flag to show the logs |
--allow-plain |
Return a plain text (not synced) lyrics if no LRC format was found |
-p |
Lrc providers, split by whitespaces |
-d |
The duration of track in ms, if provider supports. Keep default if unknow |
-m |
Max deviation for a subtitle length in ms, enable if duration is set |
Python
import syncedlyrics_aio
loop = asyncio.get_event_loop()
lrc = loop.run_until_complete(syncedlyrics_aio.search("[TRACK_NAME] [ARTIST_NAME]"))
if lrc:
print(lrc)
Or with options:
syncedlyrics_aio.search("...", allow_plain_format=True, save_path="{search_term}_1234.lrc", providers=["NetEase"], duration=213000)
Providers
- Lrclib
- Musixmatch
- NetEase
- Megalobiz
- Tencent
Lyricsify(Broken, should bypass Cloudflare protection)Deezer(Broken)
Feel free to suggest more providers or make PRs to fix the broken ones.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
syncedlyrics_aio-0.5.5.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for syncedlyrics_aio-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2615966cebcaaa8cb82ae4c72edc73c7c244ed5c1507f1047993e2355486b6f5 |
|
MD5 | 03b3dfe7409cf492a26c794bd4cafd55 |
|
BLAKE2b-256 | 1f5d7eadb354d51bdc8b735eaecc3baf95ef00b1c9629008eac1b09bd21be8fe |