Skip to main content

Python API for downloading FLO charts

Project description

flo-chart.py

flo

flo-chart.py is a Python API that retrieves the TOP 100 information from the FLO.

Installation

pip install flo-chart.py

Quickstart

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

>>> from flo import *
>>> chart = ChartData()
>>> print(chart[0].json())
{
    "artist": "IVE (아이브)",
    "image": "https://cdn.music-flo.com/image/v2/album/763/481/12/04/412481763_6420ff34_s.jpg?1679884086290/dims/resize/256x256/quality/90",
    "isNew": false,
    "lastPos": 1,
    "rank": 1,
    "title": "Kitsch"
}
>>> print(chart.name)
FLO 차트
>>> print(chart.date)
2023-04-09 22:00:00

ChartData Arguments

  • name – The chart name
  • date – The chart date
  • 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.

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

flo-chart.py-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

flo_chart.py-1.0.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

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