
pjanakir
New User
Mar 16, 2010, 3:53 AM
Post #4 of 4
(4384 views)
|
Re: [7stud] Perl Script to fetch values from Search API
[In reply to]
|
Can't Post
|
|
7stud, That approach that I used will be helpful for single-item lookups, but there are too many records in the file to process individually. You may want to look into command-line PHP scripting to handle the OCLC data in batch: http://www.php.net/manual/en/features.commandline.php You don't have to use PHP, either, if there are languages you're more comfortable using -- Perl, Python, Java, shell script; it's up to you. Also, you likely don't need the 'startLibrary', 'maximumLibraries', or 'libType' parameters in your requests: these are to limit the number of libraries from which you retrieve results, and we want to include all libraries within the specified location. Finally, examine the data returned from a sample API request: http://www.worldcat.org/webservices/catalog/content/libraries/58599?location=ca&startLibrary=&maximumLibraries=libtype=&wskey=[Worldcat API key from script] It's possible to fetch results as MARC XML, but using the the above will return XML that conforms to the ISO 20775 Holdings schema, which is simpler to parse. Please let me know. Iam needing your help very much on this. Thanks ...
|