This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
phantombuster-sdk with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
phantombuster command to facilitate development of scripts for Phantombuster.
sudo npm install -g phantombuster-sdk (recommended)
npm install phantombuster-sdk
For now, the only feature provided is the uploading of scripts via Phantombuster's API.
The SDK works with
phantombuster.cson. This file must be located alongside the scripts, in the same directory (or a parent directory).
This file is simple and self explanatory. The small example below is enough to understand everything:
[ name: 'Excellent project 1' # Arbitrary name, only used for logs apiKey: 'xxxx' # Phantombuster API key (which identifies the account) # Mappings of Phantombuster script names to local script files (relative to the phantombuster.cson file) scripts: 'scraping.js': 'project1/scraping.js' 'export.js': 'project1/export.js' , name: 'Cool project 2' apiKey: 'another xxxx' scripts: 'some-casperjs-browsing.js': 'folder/script.js' ]
phantombuster [-c config.cson] [script.coffee [other.coffee...]]
phantombusterin a directory containing
phantombuster -c config.cson
phantombuster project/script.coffee(must be a value in one of the
See the full documentation here: https://hub.phantombuster.com/docs/sdk