Skip to main content

A package to easily scrape music chart data from Melon and Bugs. Suitable for training lists and dictionaries.

Project description

MelonTop100

한국 음악 사이트(멜론, 벅스)의 차트 정보를 쉽게 가져올 수 있는 Python 패키지입니다.

get_songs() 함수를 사용하면 각 사이트의 인기 차트 곡 목록을 리스트 형태로 조회할 수 있으며, 각 항목은 곡명, 아티스트, 앨범 등의 정보를 담은 딕셔너리로 제공됩니다.

Setup(Dev)

$ uv sync
$ uv run pytest
$ uv run ruff check .

Use

$ pip install melon-top100
$ python

from melon_top100 import melon, bugs

# 멜론 Top 100
>>> melon.get_songs()
[{'song_no': '34754292', 'title': 'TOMBOY', 'album': 'I NEVER DIE', 'artist': '(여자)아이들'}, ...]

>>> melon.get_like_count(34754292)
{'34754292': 137492}

# 벅스 실시간 차트
>>> bugs.get_songs()
[{'track_id': '130013303', 'title': 'Adrenaline', 'artist': 'ATEEZ', 'album': 'GOLDEN HOUR : Part.4'}, ...]

Ruff

이 프로젝트는 린터와 포매터로 Ruff를 사용합니다. Ruff는 Rust로 작성된 Python 린터/포매터로, 기존 도구(flake8, isort, black 등)를 대체하면서도 압도적으로 빠른 속도를 제공합니다.

타입 힌트에 대해서는 개인적으로 선호하는 편은 아니지만, Ruff가 타입 힌트를 기반으로 더 정밀한 분석과 자동 수정을 제공하는 방향으로 발전하고 있어 그 가능성에 대한 기대감으로 적용했습니다.

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

melon_top100-1.5.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

melon_top100-1.5.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file melon_top100-1.5.0.tar.gz.

File metadata

  • Download URL: melon_top100-1.5.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for melon_top100-1.5.0.tar.gz
Algorithm Hash digest
SHA256 0b02a46fffb2069ee1173dab8a4a60922e411ee2e23404189f67a06503a5b2a8
MD5 47e990e1c2612d36c227b107906874e8
BLAKE2b-256 2e8b712be58a9b6cde81578c663e4af1e239af2efedde0f3f1e7ee9d392c8d5b

See more details on using hashes here.

File details

Details for the file melon_top100-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: melon_top100-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for melon_top100-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad739f1d2380fc4da573932ce5b0b23d9c730b07057f67d1bf9c65e053a924fd
MD5 68f119421a9ac181a6a7e25ab118aec8
BLAKE2b-256 cc8483df5e341ea3c5c809c0477a72225825e06048c50e327778a47f9902ce0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page