/docker-snapcrawl

Crawl a website and take screenshots (Docker version)

Primary LanguageDockerfile

Snapcrawl Docker Image

Version

View on GitHub | View on DockerHub


This is a containerized version of Snapcrawl - a command line utility for crawling a website and saving screenshots.

Usage

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

Using with Docker Compose

# 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