http://www.radio-browser.info/web服务的python包装器
pyradios的Python项目详细描述
皮拉迪奥斯
A Python wrapper for the Radio Browser.
安装
pip install pyradios
用法示例
In [1]: from pyradios import RadioBrowser In [2]: rb= RadioBrowser() In [3]: rb.stations_byid('92585') Out[3]: [{'id': '92585', 'changeuuid': 'e78eb8c0-1a25-11e8-a334-52543be04c81', 'stationuuid': '9621d43e-0601-11e8-ae97-52543be04c81', 'name': 'Radio Maria Südtirol', 'url': 'http://s1.shoutitaly.com:8020/;', 'homepage': 'http://radiomaria.bz.it/', 'favicon': 'http://radiomaria.bz.it/wp-content/uploads/2013/04/Radio-Maria-S%C3%BCdtirol-340.jpg', 'tags': 'bressanone,talk,catholic,christian', 'country': 'Italy', 'state': 'Trentino-Alto Adige/Südtirol', 'language': 'German', 'votes': '10', 'negativevotes': '0', 'lastchangetime': '2018-02-25 13:17:54', 'ip': '176.31.180.157', 'codec': 'MP3', 'bitrate': '128', 'hls': '0', 'lastcheckok': '1', 'lastchecktime': '2018-09-03 08:56:36', 'lastcheckoktime': '2018-09-03 08:56:36', 'clicktimestamp': '2018-09-03 09:57:59', 'clickcount': '0', 'clicktrend': '0'}]
开发设置
$ virtualenv venv
$ source venv/bin/activate
$ python setup.py develop
运行测试
$ virtualenv venv
$ source venv/bin/activate
$ python setup.py test
发布历史记录
- Work in progress
元
安德烈·桑托斯–@ztzandre–andreztz@gmail.com
根据麻省理工学院的许可证发行有关详细信息,请参见LICENSE
。
贡献
- 用叉子叉(https://github.com/andreztz/pyradios/fork)
- 创建功能分支(
git checkout -b feature/fooBar
) - 提交更改(
git commit -am 'Add some fooBar'
) - 推到分支(
git push origin feature/fooBar
) - 创建新的拉取请求