multi

command
v0.0.0-...-0cccc01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 12 Imported by: 0

README

About

This example demonstrates using a standalone Go binary with the the docker.io/chromedp/headless-shell container to scrape multiple websites.

Running

# build container
$ cd /path/to/chromedp/examples
$ podman build -f multi/Dockerfile --tag localhost/multi .

# make output directory
$ mkdir out

# run example
$ podman run --rm --volume ./out:/out localhost/multi 'https://www.google.com/' 'https://ifconfig.me'

# list the output
$ ls out
0.png  1.png

Documentation

Overview

Command multi is a chromedp example demonstrating how to use headless-shell and a container (Docker, Podman, other). See README.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL