KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
pyndlsearch
★ 15
Open GitHub ↗
Python wrapper of NDL Search.
Download README (.md)
Explore Similar Repositories
TelegramEmojiGenerator
:
Helps generate better emoji assets for the Telegram's Android client.
hugo_theme_solit
:
No description available.
FRPinView
:
PinView extends from UIView to provide PIN input
VRS-Aircraft-Markers
:
Custom aircraft markers for Virtual Radar Server.
python-pipes
:
A simple streaming framework for Python
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
pyndlsearch
?
Download (.md)
# pyndlsearch [](https://raw.githubusercontent.com/nocotan/pyndlsearch/master/LICENSE) Python wrapper of [NDL Search](http://iss.ndl.go.jp/information/api/). ### Requirements - Python 3.5.2 - requests 2.10.0 ### Instration ``` pip install pyndlsearch ``` ### SRU(Search/Retrieve Via URL) http://iss.ndl.go.jp/api/sru - version: 1.2 - query: CQL - startRecord: default 1 - maximumRecords: default 200 - recordPacking: default "string" - recordSchema: default "dc" - inprocess: default "false" - onlyBib: default "false" #### Usage ```python:sample # -*- coding: utf-8 -*- from pyndlsearch.client import SRUClient from pyndlsearch.cql import CQL if __name__ == '__main__': # CQL検索クエリの組み立て cql = CQL() cql.title = 'Python' cql.fromdate = '2000-10-10' #print(cql.payload()) # NDL Searchクライアントの設定 client = SRUClient(cql) client.set_maximum_records(2) #print(client) # get_response()ではxml形式で取得可能 #res = client.get_response() #print(res.text) # SRU srres = client.get_srresponse() for record in srres.records: print(record.recordData.title) print(record.recordData.creator) ``` - 出力結果 ``` 10日でおぼえるPython入門教室 穂苅実紀夫, 寺田学, 中西直樹, 堀田直孝, 永井孝 著 1500円定番ARMマイコン・ボードで試して合点! アプリはスクリプトで柔軟に!マイコン用MicroPythonプログラミング 中村 晋一郎 ``` ### 注意 - デフォルトだと200件取りに行ってしまうためちゃくちゃ遅いです - SRUClientの最大件数を調節してください