https://github.com/othree/spider-screenshot
Web spider and take screenshot
https://github.com/othree/spider-screenshot
e2e screenshot test web web-spider
Last synced: 10 months ago
JSON representation
Web spider and take screenshot
- Host: GitHub
- URL: https://github.com/othree/spider-screenshot
- Owner: othree
- Created: 2018-02-01T07:56:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T04:07:25.000Z (over 8 years ago)
- Last Synced: 2025-04-05T10:42:26.760Z (about 1 year ago)
- Topics: e2e, screenshot, test, web, web-spider
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/spider-screenshot
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spider Screenshot
Web spider and take screenshot for input URL. Only spider the same domain, under the same pathname.
Based on Google's [puppeteer](https://github.com/GoogleChrome/puppeteer).
## Help
```
Usage: spider-screenshot [options]
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 Start URL
-c, --constrain-url Constrain URL, only URL match this URL will be screenshot
-o, --output Output path (default: ./screenshots)
-w, --width Window width (default: 960)
-h, --height Window height (default: 1200)
-s, --device-scale-factor Like device pixel ratio in CSS (default: 1.5)
-u, --user-agent User agent string
-s, --seperator Used to replace / in path when save screeshota (default: -)
-l, --level Web spider level on page depth, -1 is infinity. (default: 10)
-b, --black-list Black list file, pathname in lines
--setup-script Setup script, will executes before start crawler
-v, --verbose Print status
-d, --debug Debug mode
-h, --help output usage information
```