News for hackers. Stuff that matters.
Re:Show HN: Percollate – a command-line tool to grab web pag... by dananjaya86 on Friday October 12, 2018 @04:44AM (#18200122)
How is it different from, let's say:

chrome --headless --disable-gpu --print-to-pdf https://www.google.com/

Re:Show HN: Percollate – a command-line tool to grab web pag... by cronopios on Friday October 12, 2018 @05:55AM (#18200356)
--print-to-pdf is very limited.

As soon as you need to control anything, you have to use [Puppeteer](https://developers.google.com/web/tools/puppeteer/)

Re:Show HN: Percollate – a command-line tool to grab web pag... by danburzo on Friday October 12, 2018 @08:41AM (#18201004)
As @cronopios mentions, if you need a bit of flexibility in the output, you need to use a wrapper over Chromium — either Electron, or (the more recent) Puppeteer.

Other than that, it runs the article through Readability to extract just the main content and applies customizable CSS / HTML to it.

Re:Show HN: Percollate – a command-line tool to grab web pag... by vincnetas on Friday October 12, 2018 @05:52AM (#18200348)
It uses puppeteer so basically it's chrome under the hood.