A tiny script that downloads same origin resources of the given web page using SlimerJS.
- Download same origin resources (images, style sheets, scripts and so on) of the page
- Capture screenshot of the page
- Print information of error resources (ex. 404) of the page
slimerjs slimebundle.js -u http://slimerjs.org/
If you run the above commend, the resources will be downloaded at ./slimerjs.org/
.
npm install
npm run app -- -u http://slimerjs.org/
slimerjs slimebundle.js \
-u http://slimerjs.org/ \
-i 1024 \
-e 768 \
-t 1000 \
-s \
-c image/png,image/gif \
--skip-error-resources \
--skip-screenshot
- -u or --url <string>
- The URL of the page.
- -i or --width <n>
- The width of the viewport.
- -e or --height <n>
- The height of the viewport.
- -t or --timeout <n>
- The timeout (ms). The default is 5000.
- -s or --skip-overwrite
- Specify if you want to avoid overwriting previously downloaded files.
- -c or --capture-content <regexp,regexp,..>
- The comma separated regexps matching content types of resources for which you want to retrieve the content. The default is ".+". See more details.
- --skip-saving
- Specify if you want to skip saving resources.
- --skip-error-resources
- Specify if you want to skip logging error resources.
- --skip-screenshot
- Specify if you want to skip capturing screenshot.