metaodi / sruthi

SRU (Search/Retrieve via URL) client library for Python
MIT License
9 stars 3 forks source link

Letting the user specify the keyword to use when searching #27

Closed edipretoro closed 4 years ago

edipretoro commented 4 years ago

Fixing #26

Here is a trace:

In [3]: records = sruthi.searchretrieve('https://suche.staatsarchiv.djiktzh.ch/SRU/', query='Zurich')

In [4]: pprint.pprint(records)
SearchRetrieveResponse(sru_version='1.2',count=500,next_start_record=11)

In [5]: records = sruthi.searchretrieve('http://catalogue.bnf.fr/api/SRU', query='bib.isbn="9782412049402"', operation="sea
   ...: rchRetrieve")

In [6]: pprint.pprint(records)
SearchRetrieveResponse(sru_version='1.2',count=1,next_start_record=None)