Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
genie-chart.py is a Python API that retrieves the TOP 100 chart information from the Genie.
pip install genie-chart.py
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
date
– The chart datechartPeriod
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.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.This project is licensed under the MIT License.
FAQs
Python API for downloading Genie charts
We found that genie-chart.py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.