Add a method to get all the possible favicons from the rendered page (either embedded, or fetch them with requests) - See AIL implementation for reference - the response of this method is a dictionary: {"URL_or_reference": b"favicon as a bytestream"}
Add an optional parameter to the capture_page method - something like with_favicons (False by default)
Playwright blacklists requests to fetch the favicons (see https://github.com/microsoft/playwright/issues/7493), so we need an alternative to that.
For that to work, we need to do the following:
PlaywrightCapture
{"URL_or_reference": b"favicon as a bytestream"}
capture_page
method - something likewith_favicons
(False
by default)CaptureResponse
accordingly https://github.com/Lookyloo/PlaywrightCapture/blob/7e6242890a7cb40a5e097ab3f54e2992e59abf0b/playwrightcapture/capture.py#L48LacusCore
CaptureResponseJson
): https://github.com/ail-project/LacusCore/blob/86b4b51dcdc297b0dbb3e69eae05ab61766c6a49/lacuscore/lacuscore.py#L84CaptureSettings
andenqueue
method to support the newwith_favicon
keyword: https://github.com/ail-project/LacusCore/blob/86b4b51dcdc297b0dbb3e69eae05ab61766c6a49/lacuscore/lacuscore.py#L100_capture
to passwith_favicon
toPlaywrightCapture.capture_page
PyLacus
CaptureResponse
to map withCaptureResponseJson
from LacusCoreCaptureSettings
to be the same as in LacusCoreenqueue
to be the same as in LacusCoreLookyloo
with_favicon
as a parameter when enqueuing a capture in the API and in the UI