Python API for downloading Naver Vibe charts
Project description
vibe-chart.py
vibe-chart.py is a Python API that retrieves the TOP 100 information from the Naver Vibe.
Installation
pip install vibe-chart.py
Quickstart
The main usage of vibe-chart.py is similar to billboard.py.
>>> from vibe import *
>>> chart = ChartData(image_size=500)
>>> print(chart[0].json())
{
"artist": "IVE(아이브)",
"image": "https://musicmeta-phinf.pstatic.net/album/009/334/9334427.jpg?type=r500Fll&v=20230404132130",
"isNew": false,
"lastPos": 1,
"rank": 1,
"title": "Kitsch"
}
ChartData Arguments
queryStart
– The starting index of the chart entries to be retrieved from the Vibe API. (default: 1)queryCount
– The number of items to retrieve from the API response, starting fromqueryStart
. (default: 100)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 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 tracklastPos
- 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.
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
vibe-chart.py-1.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for vibe_chart.py-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed16729cb600e1dfc3c2fb12b012e906cb4c0b7b398fd51de91b12749acc942d |
|
MD5 | dce32d05495d44997ccbda17296a7de1 |
|
BLAKE2b-256 | 781ae8f44df093ab40324884e2af6ef9fd1c3bd9dfd94659d06403a10cf9b2ee |