Web spider and take screenshot for input URL. Only spider the same domain, under the same pathname.
Based on Google's puppeteer.
Usage: spider-screenshot [options] <url>
Web spider and take screenshot for input URL. Only spider the same domain, under the same pathname.
Options:
-V, --version output the version number
-u, --url <url> Start URL
-c, --constrain-url <url> Constrain URL, only URL match this URL will be screenshot
-o, --output <path> Output path (default: ./screenshots)
-w, --width <width> Window width (default: 960)
-h, --height <height> Window height (default: 1200)
-s, --device-scale-factor <factor> Like device pixel ratio in CSS (default: 1.5)
-u, --user-agent <agent> User agent string
-s, --seperator <sep> Used to replace / in path when save screeshota (default: -)
-l, --level <level> Web spider level on page depth, -1 is infinity. (default: 10)
-b, --black-list <file> Black list file, pathname in lines
--setup-script <file> Setup script, will executes before start crawler
-v, --verbose Print status
-d, --debug Debug mode
-h, --help output usage information