Follow

A few words about Fluyt. Why not wget or something similar? That doesn't work when the web-app dynamically builds its DOM with JS!

· · Web · 1 · 0 · 0

So, I use WPEWebKit, with an headless backend and a web-extension that fakes a user interaction (scroll) and waits a second before dumping the HTML body to the stdout.

A Flatpak repo is provided for convenience. Tested on a Debian Stretch box (x86_64) with Flatpak 1.2 from stretch-backports. Works like a charm!

Why NIH PhantomJS? Well PhantomJS is un-maintained, likely plagued with security bugs, and Qt based anyway, which I don't want on my server. WPE is a perfect fit for this project.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!