4 ms·
Does this work if the page is behind a password/SSO wall? And is it possible to print multiple Chrome tabs? Printing pages to PDF is pretty straightforward. I
by panda888888 9y ago
Does this work if the page is behind a password/SSO wall?
And is it possible to print multiple Chrome tabs?
Printing pages to PDF is pretty straightforward. It's the above two issues were I've run into problems. Anyone know of a good solution to the second one?
- gbrits 9y agoAssuming you want this done automatically, what's the advantage of 'printing' multiple tabs to PDF in a headless browser, over just sequentially loading and printing the pages you want done?
- jancurn 9y agoNot yet, but we can quite easily add these features. Just let me know at jan@apify.com what would you need
- laktek 9y agoYou can give https://screen.rip/#pdf https://screen.rip/#pdf a try. It supports capturing pages behind auth.
- nikisweeting 9y agoChrome 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