pjscrape v.0.1


Namespace pjs

Defined in:
pjscrape.js

Root namespace for PhantomJS-side code

Static Fields

Field
Shorthand function to add a simple scraper suite.
pjs.addSuite
Add one or more scraper suites to be run.
pjs.config
Set one or more config variables, applying to all suites
pjs.init
Run the set of configured scraper suites.
Namespace Detail
pjs
Static Field Details
pjs.addScraper
Shorthand function to add a simple scraper suite.
Parameters (optional)
url {String|String[]} URL or array of URLs to scrape
Scraper {Function|Function[]} function or array of scraper functions
pjs.addSuite
Add one or more scraper suites to be run.
Parameters (optional)
suite {Object} Scraper suite configuration object
. {Object} More suite configuration objects
pjs.config
Set one or more config variables, applying to all suites
Parameters (optional)
key {String|Object} Either a key to set or an object with multiple values to set
val {mixed} Value to set if using config(key, val) syntax
pjs.init
Run the set of configured scraper suites.
©2011 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Mon Oct 24 2011 12:16:49 GMT-0700 (PDT)