Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobycm/zingmp3py
A Python library for the ZingMp3 API
https://github.com/tobycm/zingmp3py
Last synced: 25 days 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 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-19T22:13:34.000Z (over 2 years ago)
- Last Synced: 2024-10-28T00:18:17.033Z (2 months 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 ZingMp3zi = 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 ZingMp3Asyncasync 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 getUrlTypeAndIDgetUrlTypeAndID("https://zingmp3.vn/liveradio/IWZ979CW.html")
```