An open API service indexing awesome lists of open source software.

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

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
```