Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Validates JSON documents dumped by Pupa against JSON Schema
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

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

Something went wrong with that request. Please try again.