Capture the web in many ways from the command line
This package provide the command line utility for webpage-capture module.
Install it globally with your favourite package manager:
npm install -g webpage-capture-cli
Now you have the webcapture command ready on your machine, you can start playing around with the options using the built-in help typing: --help
.
For the full usage message and the list of all the available options type --help
, below are shown some of the available options, the objective is to let you capture webpages or webpage sections with custom logic in seconds.
# Capture a website to file
$ webcapture "http://google.com"
# Capture multiple websites to file
$ webcapture "http://google.com" "http://github.com"
# Capture a website to file in pdf format
$ webcapture -f pdf "http://google.com"
# Capture files to a custom output directory
$ webcapture -o output "http://google.com"
MIT © Filippo Conti