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

https://github.com/dannyben/docker-snapcrawl

Crawl a website and take screenshots (Docker version)
https://github.com/dannyben/docker-snapcrawl

Last synced: 6 months ago
JSON representation

Crawl a website and take screenshots (Docker version)

Awesome Lists containing this project

README

          

Snapcrawl Docker Image
==================================================

![Version](https://img.shields.io/badge/version-0.5.4-blue.svg)

[View on GitHub][2] | [View on DockerHub][3]

---

This is a containerized version of [Snapcrawl][1] - 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:

```shell
$ alias snapcrawl='docker run --rm -it --volume "$PWD:/app" dannyben/snapcrawl'
```

Then you can run any snapcrawl command:

```shell
$ snapcrawl --help
$ snapcrawl example.com log_level=0 depth=2 width=1024
```

Using with Docker Compose
--------------------------------------------------

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

[1]: https://github.com/dannyben/snapcrawl
[2]: https://github.com/DannyBen/docker-snapcrawl
[3]: https://hub.docker.com/r/dannyben/snapcrawl