Genie Music API
Project description
GenieAPI 🎵
GenieAPI는 Genie Music 데이터를 쉽게 가져올 수 있는 Python API 라이브러리입니다.
주요 기능 ✨
- 곡 정보 가져오기:
- 검색어를 입력하면 해당 곡의 정보를 가져옵니다.
- 반환되는 정보는 곡 제목 (title), 곡 ID (id), 아티스트/앨범 정보 (추가 정보), 앨범 아트(썸네일) URL 등을 포함합니다.
- 싱크 가사 다운로드:
- 특정 곡의 ID를 사용하여 싱크 가사가 포함된
.lrc파일을 생성합니다. - 생성된 파일은
result폴더에 저장됩니다.
- 특정 곡의 ID를 사용하여 싱크 가사가 포함된
설치 방법 🛠️
pip install GenieAPI
사용 방법 💡
from genieapi import GenieAPI
# GenieAPI 인스턴스 생성
genie = GenieAPI()
# 1. 곡 정보 검색
# "APT ROSE"라는 곡을 검색하여 1개의 결과를 가져옵니다.
song = genie.search_song("APT ROSE", limit=1)
# 반환 예시: [{'title': 'APT ROSE', 'id': '12345678', 'artist': 'APT - Debut Album', 'thumbnail': 'https://thumbnail.link/...'}]
print(song)
# 2. 싱크 가사 다운로드
# 검색 결과에서 첫 번째 곡의 ID(song[0]['id'])를 사용하여 가사를 다운로드합니다.
genie.get_lyrics(song[0]['id'])
- **APT ROSE:** 검색할 곡 제목
- **limit=1:** 가져올 곡의 개수 (기본값: 1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
genieapi-0.1.3.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genieapi-0.1.3.tar.gz.
File metadata
- Download URL: genieapi-0.1.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
467cf6612a27edf22445dbeef05b7206867acbea7f58d07c7d8c77ddf57fdaeb
|
|
| MD5 |
220994ba0cb78e911d8d2a5da960b4cc
|
|
| BLAKE2b-256 |
25c5921d62bba2c07211272021c6aac5db67ca0ba351fcba2249fabe49339b09
|
File details
Details for the file genieapi-0.1.3-py3-none-any.whl.
File metadata
- Download URL: genieapi-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
700e6990cd0ababe4d70280d2a70704214db3fe576d10b2bc84ee56533b4df12
|
|
| MD5 |
f96517f137d8ddff4be06e603f60361e
|
|
| BLAKE2b-256 |
27f05e6d74480d071c00018bccfffc70a7b6eaeb5c0fb9d773fe913e69961cfc
|