Skip to main content

A light weight Python library for the ZingMp3 API

Project description

zingmp3py

A light weight Python library for the ZingMp3 API

*all functions are return dict or JSON

Sync :

from zingmp3py import ZingMp3

zi = ZingMp3()
zi.getDetailPlaylist("67ZFO8DZ")
zi.getDetailArtist("Cammie")
zi.getRadioInfo("IWZ979CW")
zi.getSongInfo("ZWAF6UFD")
zi.getSongStreaming("ZWAF6UFD")
zi.getHomePage()
zi.getChartHome()
zi.getWeekChart("ZWAF6UFD")
zi.getNewReleaseChart()
zi.getTop100()
zi.search("rick roll")

Async

import asyncio
from zingmp3py import ZingMp3Async

async def main():
    zi = ZingMp3Async()
    await zi.getDetailPlaylist("67ZFO8DZ")
    await zi.getDetailArtist("Cammie")
    await zi.getSongInfo("ZWAF6UFD")
    await zi.getSongStreaming("ZWAF6UFD")
    await zi.getHomePage()
    await zi.getChartHome()
    await zi.getWeekChart("ZWAF6UFD")
    await zi.getNewReleaseChart()
    await zi.getTop100()
    await zi.search("rick roll")

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Get Type And ID

from zingmp3py import getUrlTypeAndID

getUrlTypeAndID("https://zinmp3.vn/liveradio/IWZ979CW.html")

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

zingmp3py-0.1.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

zingmp3py-0.1.0-py3-none-any.whl (8.3 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