一个简单的用于Python的ListenBrainz客户机库

pylistenbrainz的Python项目详细描述


皮里斯滕布兰兹

pylistenbrainz是一个简单的Python库,用于 ListenBrainz Web API。在

pylistenbrainz将帮助您开始从中获取数据并将数据提交给 ListenBrainz很快。在

以下是获取ListenBrainz用户的侦听历史的示例:

importpylistenbrainzclient=pylistenbrainz.ListenBrainz()listens=client.get_listens(username='iliekcomputers')forlisteninlistens:print("Track name:",listen.track_name)print("Artist name:",listen.artist_name)

下面是另一个如何提交ListenBrainz的快速示例:

^{pr2}$

可提供更详细的文档 在Read The Docs。在

特点

pylistenbrainz提供对所有ListenBrainz端点、句柄的轻松访问 ratelimits自动限制并支持ListenBrainz授权流。在

有关可通过pyllistenbrainz使用的API端点的详细信息,请 看看ListenBrainz API Documentation。在

安装

安装或升级pylistenbrainz:

pip install pylistenbrainz --upgrade

支持

您可以询问有关如何在IRC(freenode#metabrainz)上使用pylistenbrainz的问题。 你也可以发电子邮件给我iliekcomputers [at] gmail [dot] com。在

如果您发现了一个bug或有一个特性请求,请打开一个问题(或拉取请求)让我知道。在

许可证

pylistenbrainz - A simple client library for ListenBrainz
Copyright (C) 2020 Param Singh <iliekcomputers@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使图像以正确的速度在屏幕上移动,以适应所有显示   内存Java分配:从预先存在/分配的池中分配对象   java这种书写方式?   Java正则表达式查找字符串的开头   java是否可以创建一个类来处理安卓中的所有日志代码(例如log.d(TAG,message))   如何使用Selenium和java单击WebTable任意页面上的WebElement   java解析字符串中的文件名   java刷新JTree内容   java如何覆盖RequestMappingHandler   爪哇数石头、布、剪刀赢了多少   struts中的java无效令牌   swing JTree,优化算法,Java   java Tomcat和SSL:密钥库格式无效