4 ms·
Chrome headless does, just specify the --user-data-dir parameter to give it a profile to use (a profile where you're authenticated to the site you want to snaps
by nikisweeting 9y ago
Chrome headless does, just specify the --user-data-dir parameter to give it a profile to use (a profile where you're authenticated to the site you want to snapshot).
e.g.
chrome --disable-gpu --headless --user-data-dir=/Users/username/Library/Application\ Support/Google/Chrome/Default https://example.com/paywall/article.html https://example.com/paywall/article.html
Alternatively, use puppeteer to script the auth process. https://github.com/GoogleChrome/puppeteer https://github.com/GoogleChrome/puppeteer