Skip to content

v1.13.0

Latest
Compare
Choose a tag to compare
@Rafiot Rafiot released this 18 Feb 15:15
v1.13.0
d96b175

Most importantly, lacus has a logo now

Lacus Logo

New features

  • Support for captures with a headed browser (setting allow_headed). Only possible if lacus is running in a graphical environment. (see below for details)
  • Expose the results expiration timeout (setting expire_results to a lower value reduces the memory use if you have many captures)

Changes

Full Changelog: v1.12.0...v1.13.0

Notes for headed captures

The classical use of Lacus is to have it running on a server with no graphical interface (no X/Wayland server). The capture with Playwright uses a headless browser, runs some interactions on the page (see PlaywrightCapture for details), and finishes after a certain amount of time and/or no traffic. This method is good enough most of the time, but all the interactions on the page are predefined and cannot be modified by the user triggering the capture.

In order to use the headed option, you need the following:

  • The configuration setting "allow_headed" = True in config/generic.json
  • Lacus installed on a machine with a graphical interface
  • Pass headless set to False in the capture settings
  • Optionally general_timeout_in_sec set to the amount of time you want to interact with the page (it is set to 90 by default)

The headed capture mode opens a full browser configured with the settings passed to the capture, but it won't run the predefined interactions. Instead, it lets the user interact with the page for a set amount of time (general_timeout_in_sec), stops the capture, and store the result as usual. It is mostly helpful to manually bypass captchas and other techniques used by websites to detect bots.