Skip to content

larrydeck/sparse-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sparse-finder

A python script to retrieve "sparse" records (or any records) from WMS.

Requirements

Python requests module.

OCLC Python Authentication Library

WSKEY for Metadata API

principalID and principalIDNS

your registryID

Usage

Modify sparse-finder.py with your authentication information.

With a file containing one OCLC number per line (e.g. oclc_numbers.txt):

1108665268
1108669635
1108672386
1108673639
1108670448
1108673988
1108670391
1108671693
1108674507
...
python sparse-finder.py < oclc_numbers.txt

Output will go to stdout. To gather it in a file:

python sparse-finder.py < oclc_numbers.txt > output.txt

Concordia's output presently looks like this:


access token:  [token]
expires_in:    1199
expires_at:    2019-10-03 16:19:12Z
type:          bearer
1108665268 .b30074587 What's in your wallet /
1108669635 .b35939242 INTRODUCTORY INORGANIC CHEMISTRY I-WET LABS (Coursepack).
1108672386 .b27525272 Systematic Harmonic Substitution /
1108673639 .b37226824 LABORATORY MANUAL - INTRODUCTORY BIOLOGY (Coursepack).
1108670448 .b31714547 Vanier Equipment -- Headphones: Sony ZX100.
1108673988 .b22483469 Chance meeting
...

TODO

  • Error handling!
  • Gathering info from LBD and LHR (requires Colleciton Manager API)

About

A python script to retrieve "sparse" records from WMS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages