Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameters from Zimit 2.1.0 #1007

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/zimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,36 @@ class Meta:
data_key="ignore-http-header-charsets",
)

profile = String(
metadata={
"label": "Browser profile",
"description": "Path or HTTP(S) URL to tar.gz file which contains the "
"browser profile directory for Browsertrix crawler.",
},
required=False,
)

custom_behaviors = String(
metadata={
"label": "Custom behaviors",
"description": "JS code for custom behaviors to customize crawler. Single "
"string with individual JS files URL/path separated by a comma.",
},
required=False,
data_key="custom-behaviors",
)

warcs = String(
metadata={
"label": "WARC files",
"description": "Directly convert WARC archives to ZIM, by-passing the "
"crawling phase. This argument must contain the path or HTTP(S) URL to "
"either warc.gz files or to a tar.gz containing the warc.gz files. "
"Single value with individual path/URLs separated by comma.",
},
required=False,
)


class ZimitFlagsSchemaRelaxed(ZimitFlagsSchema):
"""A Zimit flags schema with relaxed constraints on validation
Expand Down