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)
- Host: GitHub
- URL: https://github.com/dannyben/docker-snapcrawl
- Owner: DannyBen
- Created: 2019-04-18T17:34:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T04:41:30.000Z (almost 3 years ago)
- Last Synced: 2024-10-19T15:54:00.723Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 24.4 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Snapcrawl Docker Image
==================================================

[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