Skip to content

Validates JSON documents dumped by Pupa against JSON Schema

License

Notifications You must be signed in to change notification settings

jpmckinney/pupa-validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pupa-validate

NPM version Build Status Dependency Status Coverage Status

Validates multiple JSON documents on disk or in Redis against JSON Schema.

You may use this package to validate documents created by Pupa.rb.

Usage

npm install pupa-validate

Display help and usage details:

pupa-validate -h

Read JSON documents from a different directory:

pupa-validate --output_dir /tmp/scraped_data

Read JSON documents from a Redis database (the redis package must be available):

pupa-validate --output_dir redis://127.0.0.1:6379/0

Validate JSON documents whose _type is organization against http://popoloproject.com/schemas/organization.json#:

pupa-validate organization http://www.popoloproject.com/schemas/organization.json#

Testing

DO NOT run this module's tests if you are using Redis database number 15 on localhost!

See Also

  • Pupa.rb, a Ruby data scraping framework
  • Pupa, the original Python data scraping framework

Copyright (c) 2013 James McKinney, released under the MIT license

About

Validates JSON documents dumped by Pupa against JSON Schema

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published