MarginaliaSearch/code/functions/live-capture
Viktor Lofgren 927bc0b63c (live-crawler) Add Accept-Encoding: gzip to outbound requests
This change adds `Accept-Encoding: gzip` to all outbound requests from the live crawler and feed fetcher, and the corresponding decoding logic for the compressed response data.

The change addresses issue #136, save for making the fetcher's requests conditional.
2024-12-27 03:59:34 +01:00
..
api (live-crawler) Add refresh date to feeds API 2024-12-25 14:20:48 +01:00
java/nu/marginalia (live-crawler) Add Accept-Encoding: gzip to outbound requests 2024-12-27 03:59:34 +01:00
test/nu/marginalia (feed) Sanitize illegal HTML entities out of the feed XML before parsing 2024-12-25 14:53:28 +01:00
build.gradle (live-crawler) Add Accept-Encoding: gzip to outbound requests 2024-12-27 03:59:34 +01:00
readme.md (live-capture) Add readme to live-capture function 2024-09-28 11:35:46 +02:00

This is a subsystem that allows on-demand screenshot capture of a website.

It uses the local browserless API to capture data. To use this module, you must have a browserless docker container running on machine, and then set the live-capture.browserless-uri system property to the address of the browserless container (e.g http://my-container:3000/).

When disabled, the subsystem will acknowledge the request, but will not act on it.

The module will only enable on the primary node of a service to simplify dealing with race conditions and duplicate requests.