Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Amaculus/screaming-frog-api/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The CLI wrapper functions call the Screaming Frog CLI (ScreamingFrogSEOSpiderCli) as a subprocess. They resolve the CLI path automatically from standard install locations or from the SCREAMINGFROG_CLI environment variable.
Environment variables
Set Standard paths searched automatically:
SCREAMINGFROG_CLI to the full path of the CLI executable when it is not in a standard install location.- Windows:
C:\Program Files (x86)\Screaming Frog SEO Spider\ScreamingFrogSEOSpiderCli.exe - macOS:
/Applications/Screaming Frog SEO Spider.app/Contents/MacOS/ScreamingFrogSEOSpider - Linux:
/usr/bin/screamingfrogseospider,/usr/local/bin/screamingfrogseospider
start_crawl()
Start a new crawl from a URL via the Screaming Frog CLI.
The URL to crawl.
Directory where exports and crawl files are saved. Created if it does not exist.
Path to the CLI executable. Falls back to
SCREAMINGFROG_CLI and standard install locations.Path to a
.seospiderconfig file to use for this crawl.Path to an auth config file.
Tabs to export (e.g.
["Internal:All", "Page Titles:Missing"]). When None, no tabs are exported unless export_profile is set.Bulk exports to run (e.g.
["All Inlinks", "All Outlinks"]).Reports to save.
Export file format passed to
--export-format.Run in headless mode (
--headless).Pass
--overwrite to overwrite existing export files.Pass
--save-crawl to save the crawl as a .seospider file.Pass
--timestamped-output to suffix output files with a timestamp.Task name passed to
--task-name.Project name passed to
--project-name.Additional raw CLI arguments appended to the command.
subprocess.CompletedProcess[str]
Raises
RuntimeError if the CLI exits with a non-zero return code.export_crawl()
Export data from an existing crawl file (.seospider or .dbseospider) using --load-crawl.
Path to the crawl file to load (
.seospider or .dbseospider).Directory to write exports. A temporary directory is created when
None.Path to the CLI executable.
Tabs to export. Defaults to
["Internal:All"].Bulk exports to run.
Reports to save.
Export file format.
Run in headless mode.
Overwrite existing export files.
Force re-export even if exported files already exist in
export_dir.Named export profile (e.g.
"kitchen_sink"). When set, export_tabs and bulk_exports are taken from the profile unless explicitly overridden.Path — the export directory path.
run_cli()
Run the Screaming Frog CLI with arbitrary arguments.
CLI arguments. If the first element is not the CLI executable path, it is prepended automatically.
Override the CLI executable path.
Raise
RuntimeError on non-zero exit code.subprocess.CompletedProcess[str]
resolve_cli_path()
Resolve the Screaming Frog CLI executable path.
Lookup order:
cli_pathargumentSCREAMINGFROG_CLIenvironment variable- Standard install paths for the current platform
PATH(viashutil.which)
Explicit path to the CLI. When provided, this is tried first.
Path
resolve_spider_config()
Resolve the spider.config file path used by Screaming Frog.
Lookup order:
config_pathargumentSCREAMINGFROG_SPIDER_CONFIGenvironment variable~/.ScreamingFrogSEOSpider/spider.config%APPDATA%/ScreamingFrogSEOSpider/spider.config(Windows)
Explicit path to
spider.config.Path
ensure_storage_mode()
Context manager that temporarily forces storage.mode to a given value in spider.config. Restores the original content on exit.
Storage mode value to write (e.g.
"DB", "STORE_ON_DISK").Explicit path to
spider.config. Resolved via resolve_spider_config() when None.Path to spider.config.