guoguo12 / billboard-charts

Python API for downloading Billboard charts.
https://pypi.python.org/pypi/billboard.py
MIT License
389 stars 117 forks source link

Convert ChartEntry to dictionary #96

Open s2t2 opened 2 months ago

s2t2 commented 2 months ago

Updates ChartEntry to allow it to be converted to a dictionary.

Example:

chart = ChartData('hot-100', date="2024-07-30")
entry = chart.entries[0]

dict(entry)