Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 596 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 596 Bytes

nypl-digital-collections

Library to access the New York Public Library's Digital Collections API.

Basics:

from nyplcollections import NYPLsearch

# Create search object
nypl = NYPLsearch(API_KEY)

Methods:

  • NYPLsearch.captures
  • NYPLsearch.mods
  • NYPLsearch.search
  • NYPLsearch.uuid

Search:

cats = self.nypl.search('cats')

cats.results
# [...]

MODS:

# Get a MODS record based on uuid
mods = nypl.mods('acfeeb2d-7c5e-4ce7-e040-e00a180644aa')

mods.status_code
200

mods.results
# {...}