kopia lustrzana https://github.com/bellingcat/auto-archiver
A few more manifest types
rodzic
4ee1e75aa2
commit
65a9885d86
|
@ -12,7 +12,9 @@
|
||||||
"default": None,
|
"default": None,
|
||||||
"help": "the id of the sheet to archive (alternative to 'sheet' config)",
|
"help": "the id of the sheet to archive (alternative to 'sheet' config)",
|
||||||
},
|
},
|
||||||
"header": {"default": 1, "help": "index of the header row (starts at 1)", "type": "int"},
|
"header": {"default": 1,
|
||||||
|
"type": "int",
|
||||||
|
"help": "index of the header row (starts at 1)", "type": "int"},
|
||||||
"service_account": {
|
"service_account": {
|
||||||
"default": "secrets/service_account.json",
|
"default": "secrets/service_account.json",
|
||||||
"help": "service account JSON file path. Learn how to create one: https://gspread.readthedocs.io/en/latest/oauth2.html",
|
"help": "service account JSON file path. Learn how to create one: https://gspread.readthedocs.io/en/latest/oauth2.html",
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
},
|
},
|
||||||
"save_to": {"default": "./local_archive", "help": "folder where to save archived content"},
|
"save_to": {"default": "./local_archive", "help": "folder where to save archived content"},
|
||||||
"save_absolute": {"default": False,
|
"save_absolute": {"default": False,
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"help": "whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"},
|
"help": "whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"},
|
||||||
},
|
},
|
||||||
"description": """
|
"description": """
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
"api_hash": {"default": None, "help": "telegram API_HASH value, go to https://my.telegram.org/apps"},
|
"api_hash": {"default": None, "help": "telegram API_HASH value, go to https://my.telegram.org/apps"},
|
||||||
"bot_token": {"default": None, "help": "optional, but allows access to more content such as large videos, talk to @botfather"},
|
"bot_token": {"default": None, "help": "optional, but allows access to more content such as large videos, talk to @botfather"},
|
||||||
"session_file": {"default": "secrets/anon", "help": "optional, records the telegram login session for future usage, '.session' will be appended to the provided value."},
|
"session_file": {"default": "secrets/anon", "help": "optional, records the telegram login session for future usage, '.session' will be appended to the provided value."},
|
||||||
"join_channels": {"default": True, "help": "disables the initial setup with channel_invites config, useful if you have a lot and get stuck"},
|
"join_channels": {"default": True,
|
||||||
|
"type": "bool",
|
||||||
|
"help": "disables the initial setup with channel_invites config, useful if you have a lot and get stuck"},
|
||||||
"channel_invites": {
|
"channel_invites": {
|
||||||
"default": {},
|
"default": {},
|
||||||
"help": "(JSON string) private channel invite links (format: t.me/joinchat/HASH OR t.me/+HASH) and (optional but important to avoid hanging for minutes on startup) channel id (format: CHANNEL_ID taken from a post url like https://t.me/c/CHANNEL_ID/1), the telegram account will join any new channels on setup",
|
"help": "(JSON string) private channel invite links (format: t.me/joinchat/HASH OR t.me/+HASH) and (optional but important to avoid hanging for minutes on startup) channel id (format: CHANNEL_ID taken from a post url like https://t.me/c/CHANNEL_ID/1), the telegram account will join any new channels on setup",
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
"configs": {
|
"configs": {
|
||||||
"profile": {"default": None, "help": "browsertrix-profile (for profile generation see https://github.com/webrecorder/browsertrix-crawler#creating-and-using-browser-profiles)."},
|
"profile": {"default": None, "help": "browsertrix-profile (for profile generation see https://github.com/webrecorder/browsertrix-crawler#creating-and-using-browser-profiles)."},
|
||||||
"docker_commands": {"default": None, "help":"if a custom docker invocation is needed"},
|
"docker_commands": {"default": None, "help":"if a custom docker invocation is needed"},
|
||||||
"timeout": {"default": 120, "help": "timeout for WACZ generation in seconds", "type": "int"},
|
"timeout": {"default": 120,
|
||||||
|
"type": "int",
|
||||||
|
"help": "timeout for WACZ generation in seconds", "type": "int"},
|
||||||
"extract_media": {"default": False,
|
"extract_media": {"default": False,
|
||||||
"type": 'bool',
|
"type": 'bool',
|
||||||
"help": "If enabled all the images/videos/audio present in the WACZ archive will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."
|
"help": "If enabled all the images/videos/audio present in the WACZ archive will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."
|
||||||
|
|
|
@ -10,8 +10,12 @@
|
||||||
"help": "WhisperApi api endpoint, eg: https://whisperbox-api.com/api/v1, a deployment of https://github.com/bellingcat/whisperbox-transcribe."},
|
"help": "WhisperApi api endpoint, eg: https://whisperbox-api.com/api/v1, a deployment of https://github.com/bellingcat/whisperbox-transcribe."},
|
||||||
"api_key": {"required": True,
|
"api_key": {"required": True,
|
||||||
"help": "WhisperApi api key for authentication"},
|
"help": "WhisperApi api key for authentication"},
|
||||||
"include_srt": {"default": False, "help": "Whether to include a subtitle SRT (SubRip Subtitle file) for the video (can be used in video players)."},
|
"include_srt": {"default": False,
|
||||||
"timeout": {"default": 90, "help": "How many seconds to wait at most for a successful job completion."},
|
"type": "bool",
|
||||||
|
"help": "Whether to include a subtitle SRT (SubRip Subtitle file) for the video (can be used in video players)."},
|
||||||
|
"timeout": {"default": 90,
|
||||||
|
"type": "int",
|
||||||
|
"help": "How many seconds to wait at most for a successful job completion."},
|
||||||
"action": {"default": "translate",
|
"action": {"default": "translate",
|
||||||
"help": "which Whisper operation to execute",
|
"help": "which Whisper operation to execute",
|
||||||
"choices": ["transcribe", "translate", "language_detection"]},
|
"choices": ["transcribe", "translate", "language_detection"]},
|
||||||
|
|
Ładowanie…
Reference in New Issue