德国国家图书馆api
libdnb的Python项目详细描述
LibDNB公司
This project is heavily inspired by calibre-dnb
关于
我需要一种从德国国家图书馆“API”获取基本图书元数据的方法,我找到了calibre-dnb,但它不适合我的使用情况,所以我修改了它。 {您可以访问^门户。在
开始吧
获得令牌
您需要在schnittstellen-service@dnb.de申请API密钥才能访问目录。此库使用SRU-API
,您需要一个SRU Access Token
。在
安装
pip install libdnb
用法
代码示例:
importlibdnbdnbclient=libdnb.LibDNB("Your-SRU-Access-Token-Here")result=dnbclient.lookup("9783346111098")# ISDN, Title, or any other metadata to search for hereifresult:# Result might be None if nothing was foundprint(result["title"])
字段
Key | Datatype |
---|---|
^{ | String |
^{ | String |
^{ | List |
^{ | List |
^{ | datetime.datetime |
^{ | String |
^{ | String |
^{ | String |
^{ | List |
^{ | String |
^{ | String |
^{ | String |
^{ | String |
^{ | String |
Note that some fields might be empty, you have to figure out on which fields you want to rely upon.
- 项目
标签: