code formatting

This commit is contained in:
Hugh Rundle 2021-11-16 20:40:22 +11:00
parent 03c59f2431
commit 8658e36ca8
No known key found for this signature in database
GPG key ID: CD23D6039184286B

View file

@ -2,6 +2,7 @@
import xml.etree.ElementTree as ET
import requests
def request_isni_data(search_index, search_term, max_records=5):
"""Request data from the ISNI API"""
@ -14,7 +15,7 @@ def request_isni_data(search_index, search_term, max_records=5):
"maximumRecords": max_records,
"startRecord": "1",
"recordPacking": "xml",
"sortKeys" : "RLV,pica,0,,"
"sortKeys": "RLV,pica,0,,",
}
result = requests.get("http://isni.oclc.org/sru/", params=query_params)
# the OCLC ISNI server asserts the payload is encoded