Skip to main content

melon-chart.py

melon

melon-chart.py is a Python API that retrieves the TOP 100 information from the Melon.

Installation

pip install melon-chart.py

Quickstart

The main usage of melon-chart.py is similar to billboard.py.

>>> from melon import *
>>> chart = ChartData(image_size=500)
>>> print(chart[0].json())
{
    "artist": "IVE (아이브)",
    "image": "https://cdnimg.melon.co.kr/cm2/album/images/112/11/297/11211297_20230327114349_500.jpg?7d9408105554f2f425c3d1d43ddd3d9f/melon/resize/500/optimize/90",
    "isNew": false,
    "lastPos": 1,
    "rank": 1,
    "title": "Kitsch"
}
>>> print(chart.name)
멜론차트_TOP100NOW
>>> print(chart.date)
2023-04-09 20:00:00

ChartData Arguments

  • imageSize – The size of cover image for the track. (default: 256)
  • fetch – A boolean value that indicates whether to retrieve the chart data immediately. If set to False, you can fetch the data later using the fetchEntries() 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 track
  • artist – The name of the artist
  • image – The URL of the cover image for the track
  • lastPos - The track's last position on the previous period.
  • rank – The track's current rank position on the chart.
  • isNew – Whether the track is new to the chart.

Dependencies

License

This project is licensed under the MIT License.

Metadata

Release files for melon-chart.py 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for melon-chart.py 1.0.0
File Size Uploaded
melon-chart.py-1.0.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for melon-chart.py 1.0.0
File Interpreter ABI Platform
melon_chart.py-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / melon-chart.py-1.0.0.tar.gz

Download URL melon-chart.py-1.0.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd8339461980434c478910140c523b7bcf218e4caa7dbfa00d5d2ee82d6e0e03
BLAKE2b-256 checksum
How to use checksums
22143282372b81def243cc7313e429e385d937442d9c47c113b7ee75d256b4a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / melon_chart.py-1.0.0-py3-none-any.whl

Download URL melon_chart.py-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f28b846a4d037228d5e372ec175f1d542a07406c0dad565aa32aad80ce4612f7
BLAKE2b-256 checksum
How to use checksums
032ad65215ef9cfd727dca5b6c1ace9e68eb808225b7285dcbe22e83a3aa769b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page