Python API for downloading Genie charts
Project description
genie-chart.py
genie-chart.py is a Python API that retrieves the TOP 100 chart information from the Genie.
Installation
pip install genie-chart.py
Quickstart
The main usage of genie-chart.py is similar to billboard.py.
>>> from genie import *
>>> chart = ChartData(chartPeriod=GenieChartPeriod.Monthly)
>>> print(chart[0].json())
{
"artist": "NewJeans",
"image": "https://image.genie.co.kr/Y/IMAGE/IMG_ALBUM/083/325/577/83325577_1672649874616_1_140x140.JPG/dims/resize/Q_80,0",
"lastPos": 1,
"peakPos": 1,
"rank": 1,
"title": "Ditto"
}
>>> print(chart.date)
2023-04-09 00:00:00
ChartData Arguments
date– The chart datechartPeriod- GenieChartPeriod.Realtime – 실시간
- GenieChartPeriod.Daily – 일간
- GenieChartPeriod.Weekly – 주간
- GenieChartPeriod.Monthly – 월간
- GenieChartPeriod.Alltime – 누적
fetch– A boolean value that indicates whether to retrieve the chart data immediately. If set toFalse, you can fetch the data later using thefetchEntries()method.
Chart entry attributes
ChartEntry can be accessed using the ChartData[index] syntax. A ChartEntry instance has the following attributes:
title– The title of the trackartist– The name of the artistimage– The URL of the cover image for the trackpeakPos- The track's peak position on the chart.lastPos- The track's last position on the previous period.rank– The track's current rank position on the chart.
Dependencies
License
This project is licensed under the MIT License.
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
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 genie-chart.py-1.0.4.tar.gz.
File metadata
- Download URL: genie-chart.py-1.0.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f9a4ec7cf8b69d6a94532e4945e823b7afc1ffa85e37e381f736c62c4a13b48
|
|
| MD5 |
0aeb0d80957786ee9a97ea1981de2b95
|
|
| BLAKE2b-256 |
ceb96d34b73067b8bca44f0581d3976cfedecadbb1538f01ded0fb6da7045da3
|
File details
Details for the file genie_chart.py-1.0.4-py3-none-any.whl.
File metadata
- Download URL: genie_chart.py-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e26c9ff57ecab18ea3b23fa77e2b4aa6cb1ab554f436ba6690d507b3d4df448c
|
|
| MD5 |
7cce8774a02c91c37b91627e4305ab89
|
|
| BLAKE2b-256 |
287ac30b587b6848c3ba2172a39bee53ce4c06e9793cb559619f227d33b324fb
|