support basic authentication
Author: AlanBellCreated Sep 25, 2026Updated Sep 27, 2026
Labelsfeature
I would like to have some parameters on the command line to pass in a username and password, allowing access to password protected HTML pages to convert to PDF files. It looks like passing a header to the URLFetcher() somewhere around https://github.com/Kozea/WeasyPrint/blob/fe648ff0985ca213fec80ff58af128c8c20c29fc/weasyprint/__main__.py#L200 would probably do it.
Source: Kozea/WeasyPrint