Skip to content

takenspc/slimebundle

Repository files navigation

slimebundle

A tiny script that downloads same origin resources of the given web page using SlimerJS.

Features

  • 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

Usage

slimerjs slimebundle.js -u http://slimerjs.org/

If you run the above commend, the resources will be downloaded at ./slimerjs.org/.

Using npm

npm install
npm run app -- -u http://slimerjs.org/

Options

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published