simonw / shot-scraper

A command-line utility for taking automated screenshots of websites
https://shot-scraper.datasette.io
Apache License 2.0
1.65k stars 72 forks source link

How to allow insecure HTTPS connection with broken certs? #153

Open belonesox opened 1 month ago

belonesox commented 1 month ago

How to allow insecure HTTPS connection with broken certs?

Like single-file --browser-ignore-insecure-certs ... ?

emteelb commented 3 weeks ago

I encountered this issue today when trying to take screen grabs of a local Proxmox VE web interface. The following commands worked for me to avoid the playwright._impl._errors.Error: Page.goto: net::ERR_CERT_AUTHORITY_INVALID error that I was getting.

Scrape a single URL:

shot-scraper shot --browser-arg "--ignore-certificate-errors" [...]

Scrape multiple URLs specified in a YAML configuration file:

shot-scraper multi --browser-arg "--ignore-certificate-errors" [...]