Skip to content

Commit

Permalink
new: optionally let playwrightcapture to attempt to allow all tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Mar 19, 2024
1 parent 87812f0 commit 7e57d2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pylacus/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class CaptureSettings(TypedDict, total=False):
viewport: dict[str, int] | None
referer: str | None
with_favicon: bool
allow_tracking: bool

force: bool | None
recapture_interval: int | None
Expand Down Expand Up @@ -147,6 +148,7 @@ def enqueue(self, *,
viewport: dict[str, int] | None=None,
referer: str | None=None,
with_favicon: bool=False,
allow_tracking: bool=False,
rendered_hostname_only: bool=True,
force: bool=False,
recapture_interval: int=300,
Expand Down Expand Up @@ -174,6 +176,7 @@ def enqueue(self, *,
viewport: dict[str, int] | None=None,
referer: str | None=None,
with_favicon: bool=False,
allow_tracking: bool=False,
rendered_hostname_only: bool=True,
force: bool=False,
recapture_interval: int=300,
Expand Down Expand Up @@ -222,6 +225,8 @@ def enqueue(self, *,
to_enqueue['referer'] = referer
if with_favicon:
to_enqueue['with_favicon'] = with_favicon
if allow_tracking:
to_enqueue['allow_tracking'] = allow_tracking
if uuid:
to_enqueue['uuid'] = uuid

Expand Down

0 comments on commit 7e57d2b

Please sign in to comment.