Skip to content

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

License

Notifications You must be signed in to change notification settings

nmohoric/nypl-digital-collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
# {...}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages