code formatting
This commit is contained in:
parent
03c59f2431
commit
8658e36ca8
|
@ -2,6 +2,7 @@
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
def request_isni_data(search_index, search_term, max_records=5):
|
def request_isni_data(search_index, search_term, max_records=5):
|
||||||
"""Request data from the ISNI API"""
|
"""Request data from the ISNI API"""
|
||||||
|
|
||||||
|
@ -14,7 +15,7 @@ def request_isni_data(search_index, search_term, max_records=5):
|
||||||
"maximumRecords": max_records,
|
"maximumRecords": max_records,
|
||||||
"startRecord": "1",
|
"startRecord": "1",
|
||||||
"recordPacking": "xml",
|
"recordPacking": "xml",
|
||||||
"sortKeys" : "RLV,pica,0,,"
|
"sortKeys": "RLV,pica,0,,",
|
||||||
}
|
}
|
||||||
result = requests.get("http://isni.oclc.org/sru/", params=query_params)
|
result = requests.get("http://isni.oclc.org/sru/", params=query_params)
|
||||||
# the OCLC ISNI server asserts the payload is encoded
|
# the OCLC ISNI server asserts the payload is encoded
|
||||||
|
|
Loading…
Reference in New Issue