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 details)

Uploaded Source

Built Distribution

zingmp3py-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file zingmp3py-0.1.0.tar.gz.

File metadata

  • Download URL: zingmp3py-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for zingmp3py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d2944feb13a14d9e219c55b6b1544c72946fb4f61886fe483b96ea7d6d9c92a
MD5 721e15791474b2dc83fac2b3a4fdc7b6
BLAKE2b-256 3c135b969432bfcf915a3c4d2cd885b221a80027892b7389614d506df9611247

See more details on using hashes here.

File details

Details for the file zingmp3py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zingmp3py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for zingmp3py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 959937a50f88de122b353f706348503355725629fe786631c057269d96ba09e1
MD5 6dff13d4e3e8c465cda8a8c260433bb9
BLAKE2b-256 1b204fe50a820d636ec98bac3b414b38829edf588f84d209eb6950d6f99fa62e

See more details on using hashes here.

Supported by

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