https://github.com/tobycm/zingmp3py
A Python library for the ZingMp3 API
https://github.com/tobycm/zingmp3py
Last synced: about 1 year ago
JSON representation
A Python library for the ZingMp3 API
- Host: GitHub
- URL: https://github.com/tobycm/zingmp3py
- Owner: tobycm
- License: apache-2.0
- Created: 2022-09-19T22:13:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-19T22:13:34.000Z (over 3 years ago)
- Last Synced: 2025-02-08T05:42:36.482Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zingmp3py
#### A light weight Python library for the ZingMp3 API
##### *all functions are return dict or ZingMp3 Object
# Sync :
```py
from zingmp3py import ZingMp3
zi = ZingMp3()
zi.getDetailPlaylist("67ZFO8DZ")
zi.getDetailArtist("Cammie")
zi.getRadioInfo("IWZ979CW")
zi.getSongInfo("ZWAF6UFD")
zi.getSongStreaming("ZWAF6UFD")
zi.getTop100()
zi.search("rick roll")
```
# Async
```py
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.getTop100()
await zi.search("rick roll")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
## Get Type And ID
```py
from zingmp3py import getUrlTypeAndID
getUrlTypeAndID("https://zingmp3.vn/liveradio/IWZ979CW.html")
```