πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Book a DemoInstallSign in
Socket

bugs-chart.py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugs-chart.py

Python API for downloading Bugs charts

1.0.4
PyPI
Maintainers
1

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.

FAQs

Did you know?

Socket

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.

Install

Related posts