View on GitHub | View on DockerHub
This is a containerized version of Snapcrawl - a command line utility for crawling a website and saving screenshots.
Create a snapcrawl
alias that runs the docker container and mounts the
current directory to the container's working directory:
$ alias snapcrawl='docker run --rm -it --volume "$PWD:/app" dannyben/snapcrawl'
Then you can run any snapcrawl command:
$ snapcrawl --help
$ snapcrawl example.com log_level=0 depth=2 width=1024
# docker-compose.yml
version: '3'
services:
bash:
entrypoint: bash
<<: &default
image: dannyben/snapcrawl
volumes: [".:/app"]
snapcrawl:
<<: *default
And then you can run:
$ docker-compose run snapcrawl --help
$ docker-compose run snapcrawl example.com