Giter VIP home page Giter VIP logo

genie-chart.py's Introduction

๐Ÿงž ์ง€๋‹ˆ๋ฎค์ง ์ฐจํŠธ API: genie-chart.py

genie

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 date
  • chartPeriod
    • 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 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
  • peakPos - 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.

K-Pop music chart Python APIs

Dependencies

License

This project is licensed under the MIT License.

genie-chart.py's People

Contributors

gold24park avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.