Skip to main content

bugs-chart.py

bugs

bugs-chart.py is a Python API that retrieves the TOP 100 information from the Bugs.

Installation

pip install bugs-chart.py

Quickstart

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

>>> from bugs import *
>>> chart = ChartData(chartType=BugsChartType.Domestic)
>>> print(chart[0].json())
{
    "artist": "IVE (아이브)",
    "image": "https://image.bugsm.co.kr/album/images/256/40849/4084947.jpg",
    "lastPos": 1,
    "peakPos": 1,
    "rank": 1,
    "title": "Kitsch"
}
>>> print(chart.date)
2023-04-09 12:00:00

ChartData Arguments

  • date – The chart date
  • chartType
    • BugsChartType.All – 전체
    • BugsChartType.Domestic – 국내
    • BugsChartType.International – 해외
  • chartPeriod
    • BugsChartPeriod.Realtime – 실시간
    • BugsChartPeriod.Daily – 일간
    • BugsChartPeriod.Weekly – 주간
  • 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
  • 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.

Dependencies

License

This project is licensed under the MIT License.

Metadata

Release files for bugs-chart.py 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bugs-chart.py 1.0.4
File Size Uploaded
bugs-chart.py-1.0.4.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bugs-chart.py 1.0.4
File Interpreter ABI Platform
bugs_chart.py-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / bugs-chart.py-1.0.4.tar.gz

Download URL bugs-chart.py-1.0.4.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
acb9107a32b87c0c04c5cd616fd638afa7449aebd8ea2fdfc15d0b182d25cfa3
BLAKE2b-256 checksum
How to use checksums
051ee0217472bff730bd55cfdd4e36220d0cba48dbcaf37d80dc15745243cb01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / bugs_chart.py-1.0.4-py3-none-any.whl

Download URL bugs_chart.py-1.0.4-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5e427a8e5f47855576e7c4643cce616a139ed1c6cfff3c11a093fdcbdd8f308
BLAKE2b-256 checksum
How to use checksums
41b0ff12002082b8bf3d778deb417ee7a114c8738fb9ff11d4f4d2cb4b4924f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page