If you want a standalone cli tool, just run(highly suggest):
npm install -g helium-cli
If you already has phantomjs installed and also curl in your machine, and you really don't want to download phantomjs again due to some reason. Then you can clone this repository and remove the "phantomjs" "request" dependencies in the package.json.
While you install via npm, then you can run:
helium-cli www.example.com/1 www.example.com/2
phantomjs helium-script.js www.example.com/1 www.example.com/2
Usage: helium-cli [options] [URLs] -- [phantomjs options]-A, --user-agent userAgent will be used when visit URLs-e, --referer Referer will be used when visit URLs-h, --help show help-v, --version show version
Now you can use
helium-cli pragmatically in node:
var helium = ;;;
(The BSD License)
Copyright (c) 2013, Villa.Gao firstname.lastname@example.org; All rights reserved.