> For the complete documentation index, see [llms.txt](https://cloakedkeys.gitbook.io/ofsc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cloakedkeys.gitbook.io/ofsc/reference-and-help/reference/cli.md). Agents can also search and read this documentation through its [MCP server](https://cloakedkeys.gitbook.io/ofsc/~gitbook/mcp).

# Command-line options

Every command and option the CLI accepts. Built from the click program in `ofscraper/utils/args/`.

**Config fallback** means the option's value comes from that `config.json` key when the option isn't given (`merged_settings` in `ofscraper/utils/settings.py`). [README.md](https://cloakedkeys.gitbook.io/ofsc/reference-and-help/reference.md) explains how options, `config.json` and environment variables combine.

## Contents

* [Quick reference](#quick-reference)
* [Commands](#commands)
* [`--action` modes](#action-modes)
* [Options](#options)
  * [Program Options](#program-options)
  * [Logging Options](#logging-options)
  * [Download Options](#download-options)
  * [Media Filters Options](#media-filters-options)
  * [Filename Modification Options](#filename-modification-options)
  * [Posts Filters Options](#posts-filters-options)
  * [Automation Options](#automation-options)
  * [User Selection Options](#user-selection-options)
  * [User List Filter Options](#user-list-filter-options)
  * [Advanced User List Filter Options](#advanced-user-list-filter-options)
  * [Model Sort & Processing Order Options](#model-sort-and-processing-order-options)
  * [Advanced Search & Processing Options](#advanced-search-and-processing-options)
  * [Program Scripts](#program-scripts)
  * [Advanced Program Options](#advanced-program-options)
  * [Other options](#other-options)
  * [Table Filter Options](#table-filter-options)
  * [Content Options](#content-options)
  * [Metadata Options](#metadata-options)
  * [Sorting for the table](#sorting-for-the-table)

## Quick reference

| Command                                                                     | Summary                                                                                        |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [Main program (no command)](#main-program-no-command) (103 options)         | OF-Scraper Options                                                                             |
| [`manual`](#manual) (52 options)                                            | Manually download media by providing a list of URLs or IDs                                     |
| [`msg_check`](#msg_check) (52 options)                                      | Produces a media table from messages with filterable entries and quick downloads               |
| [`story_check`](#story_check) (50 options)                                  | Produces a media table from stories and highlights with filterable entries and quick downloads |
| [`paid_check`](#paid_check) (52 options)                                    | Produces a media table from purchases with filterable entries and quick downloads              |
| [`post_check`](#post_check) (54 options)                                    | Produces a media table from posts with filterable entries and quick downloads                  |
| [`metadata`](#metadata) (86 options)                                        | Modify metadata or db files                                                                    |
| [`db`](#db) (61 options)                                                    | Print information from the database                                                            |
| [`move_creator_files`](#move_creator_files-separate-entry-point) (argparse) | Move a creator's downloaded files to match new path settings and update recorded paths.        |
| [`postgres_export`](#postgres_export-separate-entry-point) (argparse)       | Export creators from PostgreSQL back to per-creator `user_data.db` files.                      |
| [`postgres_import`](#postgres_import-separate-entry-point) (argparse)       | Import per-creator `user_data.db` files into PostgreSQL.                                       |
| [`recover_collisions`](#recover_collisions-separate-entry-point) (argparse) | Find recorded paths shared by different media and reset downloaded flags to re-download.       |
| [`stash_sync`](#stash_sync-separate-entry-point) (argparse)                 | Sync downloaded media metadata from OF-Scraper databases into Stash.                           |

## Commands

Run `OF-Scraper [OPTIONS] [COMMAND] [COMMAND OPTIONS]`.

### Main program (no command)

**Options:** 103 · **`--help` summary:** OF-Scraper Options

Runs when no subcommand is given. The entry point is `ofscraper/__main__.py`. Then `Manager.pick()` calls `commands/scraper/scraper.main()`, which cleans temp files and the database and checks the CDM. After that, the run goes one of these ways:

* With `--daemon`, it prompts for actions if none were given, then reruns on a schedule.
* With `--action` or `--scrape-paid`, it runs those actions once. It repeats with prompts if the infinite-loop config is on.
* With only Fansly `--live` or `--live-watch`, it records livestreams.
* Otherwise it opens the interactive menu: Action, Auth (edit `auth.json`), Config (edit `config.json`), Profile, Merge databases and Quit.

The run reads `auth.json` and `config.json` from the profile. It writes media under `save_location` and rows to each creator's `user_data.db`.

### `manual`

**Options:** 52 · **`--help` summary:** Manually download media by providing a list of URLs or IDs

`ofscraper manual -u URL...` or `-f FILE` (one is required). Downloads specific posts, given as OnlyFans URLs (post, chat message, story, highlight) or bare post ids. A bare id is looked up on the timeline, then in that creator's purchases. It forces `force_all`, so existing files are downloaded again. It writes posts and media to the creator's `user_data.db` and media under `save_location`, then runs the after-download script.

### `msg_check`

**Options:** 52 · **`--help` summary:** The msg\_check subcommand gathers information on media content from messages. It presents this data in a table format with filtering options for focused searches. Allows unlocked media entries to be directly downloaded through the table.

`ofscraper msg_check -u ITEM...` or `-f FILE`. Each item is a creator username, a model id, or a chat URL (`onlyfans.com/my/chats/chat/<id>` or `onlyfans.com/my/chats/<id>/?id=<message id>`), whose number is taken as the model id. Any other item is skipped with a warning. It fetches the creator's messages and purchases, writes them to `user_data.db`, and opens an interactive table of the media. Unlocked rows in the table can be queued for download, and a background thread downloads them. The messages and purchases come from the check cache unless you pass `--force`. The cache expires after 3 days.

### `story_check`

**Options:** 50 · **`--help` summary:** The story\_check subcommand gathers information on media content from stories and highlights. It presents this data in a table format with filtering options for focused searches. Allows unlocked media entries to be directly downloaded through the table.

`ofscraper story_check -u USERNAME...` (or `-f`). Fetches the creators' stories and highlights from the API, without the check cache. It writes them to `user_data.db` and opens the same downloadable media table.

### `paid_check`

**Options:** 52 · **`--help` summary:** The paid\_check subcommand gathers information on media content from purchases. It presents this data in a table format with filtering options for focused searches. Allows unlocked media entries to be directly downloaded through the table.

`ofscraper paid_check -u USERNAME_OR_ID...` (or `-f`). Fetches each creator's purchased content, writes it to `user_data.db` and opens the media table. The content comes from the check cache unless you pass `--force`. A deleted creator, named `DELETED_MODEL_PLACEHOLDER`, is read from all purchases.

### `post_check`

**Options:** 54 · **`--help` summary:** The post\_check subcommand gathers information on media content from posts. It presents this data in a table format with filtering options for focused searches. Allows unlocked media entries to be directly downloaded through the table.

`ofscraper post_check -u URL_OR_USERNAME...` or `-f FILE`. Takes `onlyfans.com/<username>` URLs or bare usernames. It fetches the areas in `--check-area` (default Timeline, Pinned, Archived and Streams; Labels is also available), writes them to `user_data.db` and opens the media table. The areas come from the check cache unless you pass `--force`. All check commands set `force_all` and `after=0`.

### `metadata`

**Options:** 86 · **`--help` summary:** Uses API to modify db files without the need for downloading

`ofscraper metadata --metadata check|update|complete`, with the usual user and area options (`--scrape-paid` takes a mode too). It uses the API to update the creators' `user_data.db` without downloading. The modes differ as follows:

* `check` refreshes metadata fields only.
* `update` also sets download status and file names from the files actually on disk.
* `complete` marks media downloaded and takes a new filename if there is one.

`--mark-stray` marks database media that are missing from the scrape (within `--after` and `--before`) as locked. `--anon` uses anonymous credentials.

### `db`

**Options:** 61 · **`--help` summary:** Print information from the database

`ofscraper db`, with user selection, area (`-o`) and media filters (type, size, length, downloaded, locked, preview, protected, post and media ids, dates), sorting and a hard limit. `--post-id` and `--media-id` take one id, or several separated by commas or spaces. An id is decimal digits, from any script. A value with no id in it, or with anything else (such as `²` or `-4`), is a usage error. It reads media rows from each selected creator's `user_data.db` and prints them as a table. `-ep`/`--export PATH` also writes a `.csv`. It makes no API calls for the media itself. With several creators, every selected creator's rows go into the one CSV. `--unmark-permanent-skips` narrows the rows to the permanent `skip_download_script` skips and sets them back to not downloaded after printing them.

### `move_creator_files` (separate entry point)

`python -m ofscraper.commands.move_creator_files (DB | --postgres --creator NAME [--site SITE]) [--apply] [--to NAME] [--path-root DIR]`. Uses argparse and is not part of the CLI (see `MOVING_FILES.md`). Works offline on one creator's `user_data.db`: moves files recorded under another of the creator's names to the folder of their current name, and updates `directory` in their `medias` rows to match. Uses only recorded paths, never the scraper's settings. Without `--apply`, prints a JSON report and changes nothing.

* **Target name:** uses the most recently seen name (`profiles.last_seen_at`). If no names have dates and there is more than one, asks for `--to NAME`, which must be a name recorded in the database.
* **What is moved:** a recorded folder with exactly one path segment matching another of the creator's names (in lower case, as the scraper writes it), followed by one or two of the scraper's own folders (`Posts`, `Images`). Paths where the name is followed by anything else (such as a folder above the library with the same name), or where `{first_letter}` above it would change, are skipped and listed. Only that segment changes; the rest of the path and the file name stay the same.
* **Per-file handling:** moves a file from its old path to the new path if that spot is free. If a file is already at the new path with the recorded size, only the database rows are updated. If both places hold a file, both are left alone and the rows aren't changed. Never replaces or deletes files, and touches only files the database records for that creator. Removes old folders left empty by the move.
* **No undo file:** row changes are saved together at the end. If a run stops partway, rerun the same command to finish; `--to OLDNAME --apply` moves everything back.
* **With `--postgres`:** works on one creator's rows in the PostgreSQL database named by `OFSC_DATABASE_URL` in the current environment (see `POSTGRESQL.md`). `--creator` identifies the creator the same way as in `recover_collisions`.

Run `python -m ofscraper.commands.move_creator_files (DATABASE | --postgres --creator NAME) [OPTIONS]`.

* `DATABASE`: One creator's user\_data.db
* `--apply`: Move the files and change the rows; without it, only report
* `--to`: The recorded name whose folder the files go to (default: the name seen last)
* `--path-root`: Original working directory for relative recorded paths
* `--postgres`: Work on the PostgreSQL database $OFSC\_DATABASE\_URL names instead of a user\_data.db; give --creator and no database with it
* `--site`: With --postgres, the creator's site (default: the site that has the creator)
* `--creator`: With --postgres, the one creator to work on, by a username or id that no other creator has

### `postgres_export` (separate entry point)

`python -m ofscraper.commands.postgres_export FOLDER [--apply] [--site SITE]`. Uses argparse and is not part of the CLI (see `POSTGRESQL.md`). The reverse of `postgres_import`: exports rows from the PostgreSQL database named by `OFSC_DATABASE_URL` back to per-creator SQLite files at `FOLDER/<model_id>/user_data.db` (the default `metadata` layout under a profile's `.data` folder). Reads PostgreSQL in one read-only transaction. Without `--apply`, reports which files would be written. Never modifies an existing `user_data.db`: that creator is skipped and listed, so you can export them to another `FOLDER`. Each file is created with the standard new-database builder (with current tables and all upgrade flags), written to a `.partial` file first, verified by reading it back like `postgres_import`, and only then renamed. `--site` picks the site when PostgreSQL holds rows for more than one.

Run `python -m ofscraper.commands.postgres_export FOLDER [OPTIONS]`.

* `FOLDER`: folder the user\_data.db files go under, one folder per creator
* `--apply`: write the files; without it, only report
* `--site`: the site whose creators are written; needed only when PostgreSQL has rows for more than one site

### `postgres_import` (separate entry point)

`python -m ofscraper.commands.postgres_import FOLDER [--apply] [--skip-bad-files]`. Uses argparse and is not part of the CLI (see `POSTGRESQL.md`). Imports `user_data.db` files found under `FOLDER` into the PostgreSQL database named by `OFSC_DATABASE_URL`. Original files are never modified: each copy is upgraded like a normal scan, then its rows are converted to PostgreSQL column types and written to that file's site schema. Without `--apply`, reports what would be imported and any blockers (a value a column can't hold, a creator found in two files, a creator already in PostgreSQL, or a file from a newer version). With `--apply`, imports everything in one transaction.

Run `python -m ofscraper.commands.postgres_import FOLDER [OPTIONS]`.

* `FOLDER`: folder to search for user\_data.db files
* `--apply`: write to PostgreSQL; without it, only report
* `--skip-bad-files`: with --apply, bring in the files that can be and leave out the rest
* `--staging`: folder for the working copies, which need as much room as the files (default: the system's temporary folder)

### `recover_collisions` (separate entry point)

`python -m ofscraper.commands.recover_collisions (DB | --postgres --creator NAME [--site SITE] [--undo-dir DIR]) [--apply] [--undo FILE] [--path-root DIR]`. Uses argparse and is not part of the CLI (see `COLLISION_RECOVERY.md`). Works offline on one creator's `user_data.db`, finds recorded paths shared by different media, and prints a JSON report. `--apply` resets `downloaded=0` for those media and writes a JSON undo file beside the database. `--undo FILE` previews restoring those flags, or restores them with `--apply`. Never touches media files or contacts OnlyFans.

With `--postgres`, works on one creator's rows in the PostgreSQL database named by `OFSC_DATABASE_URL` in the current environment (see `POSTGRESQL.md`), producing the same results as a SQLite file with the same rows. `--creator` takes a username or ID and must match exactly one creator: an ambiguous name (an ID present on both sites, an ID matching another creator's username, or a username shared by two creators) is refused with a list of matches, requiring `--site` or a unique username/ID. Without `--apply`, the connection is read-only. With `--apply`, all updates run in one transaction: the undo file is written first to `--undo-dir` (required with `--apply`; use a folder that's kept, and in Docker a mounted one), and each row is updated only if it still matches what was read, aborting with no changes if the scraper modified a row meanwhile. Once saving starts, the undo file is kept even if the command is interrupted (such as a lost connection or Ctrl-C), and the command notes that commit status is unknown. The report includes the resolved creator (`creator`: site, id, username). The undo file identifies rows by `(media_id, post_id)` rather than `id`, recording prior values plus the server and database. `--undo` restores all rows or none, and refuses a different creator, site, SQLite undo file, or rows changed since. Paths that are absolute only on another OS are refused.

Run `python -m ofscraper.commands.recover_collisions (DATABASE | --postgres --creator NAME) [OPTIONS]`.

* `DATABASE`: One model's user\_data.db
* `--apply`: Apply the previewed recovery or undo operation
* `--undo`: Preview restoring flags from a recovery undo file
* `--path-root`: Original working directory for relative recorded paths
* `--postgres`: Work on the PostgreSQL database $OFSC\_DATABASE\_URL names instead of a user\_data.db; give --creator and no database with it
* `--site`: With --postgres, the creator's site (default: the site that has the creator)
* `--creator`: With --postgres, the one creator to work on, by a username or id that no other creator has
* `--undo-dir`: With --postgres, the folder --apply writes the undo file to: needed with --apply, and it must be a folder that is kept (in Docker, a mounted one)

### `stash_sync` (separate entry point)

`python -m ofscraper.commands.stash_sync (PATH... | --postgres [--site SITE] [--creator NAME]) [--apply] [--scan] [--path-map LOCAL=STASH]`. Uses argparse and is not part of the CLI (see `STASH.md`). Reads creators' `user_data.db` files offline (searching folders such as `<profile>/.data`), or with `--postgres` reads the PostgreSQL database named by `OFSC_DATABASE_URL` in the current environment (read-only; all creators on both sites unless narrowed with `--site` or `--creator`). Over Stash's GraphQL API, fills empty fields on each downloaded file's scene or image: performer, studio, date, title, details, code, URL and source tags. Fansly databases (`schema_flags` `site=fansly`) get the `Fansly` studio and links instead of OnlyFans ones, plus @mentioned creators as performers, the media ID as code, a preview tag, hashtags as tags, and a gallery per post or message. Never overwrites existing Stash values, never contacts OnlyFans or Fansly, and without `--apply` only prints a JSON report.

Run `python -m ofscraper.commands.stash_sync (PATH... | --postgres) [OPTIONS]`.

* `PATHS`: user\_data.db files, or folders to search for them (e.g. /.data)
* `--postgres`: read the PostgreSQL database $OFSC\_DATABASE\_URL names instead of user\_data.db files; give no paths with it
* `--site`: with --postgres, only this site's creators (default: both sites)
* `--creator`: with --postgres, only the creators with this id (on either site) or with this username now or before, in any case; it can match more than one (default: every creator); repeatable
* `--apply`: write to Stash; without it, only report
* `--url`: Stash GraphQL URL (default <http://localhost:9999/graphql>, or $STASH\_URL)
* `--api-key`: Stash API key, if Stash has a password (default $STASH\_API\_KEY)
* `--studio`: studio to set for every site (default OnlyFans, or Fansly for Fansly databases)
* `--tag-prefix`: prefix for the source tags for every site, e.g. 'OnlyFans Paid' (default 'OnlyFans ', or 'Fansly ' for Fansly databases)
* `--no-tags`: don't add tags (source tags, and for Fansly the preview tag and hashtags)
* `--organized`: also mark items as organized
* `--path-map`: rewrite a path prefix when Stash sees the files elsewhere (e.g. in Docker); repeatable
* `--scan`: with --apply, have Stash scan the download folders first and wait for it

### Scripts in `scripts/`

* `scripts/commit_version.sh`: CI helper. Works out the commit-based version string, hashes and push type from git for the build workflows.
* `scripts/creator_names.py`: `python scripts/creator_names.py [--all | --find NAME | --add MODEL_ID NAME [--seen DATE] [--force] | --csv FILE] [--data-dir DIR | --postgres [--site SITE]]`. Lists the usernames each creator account has had from the `profiles` table of every `<data-dir>/<model_id>/user_data.db` (default: the main profile's `.data` folder), along with first-seen and last-seen dates and the folder name a deleted account would use. `--add` appends a name, and `--seen` sets its date (`2024-03-01` or `2024-03-01T09:30:00+00:00`; UTC unless an offset is given, at most one day ahead, and not allowed for the deleted-account placeholder). `--add` refuses a name or date that would change a deleted account's folder name unless `--force` is given. `--force` doesn't pick that name directly: a name becomes the deleted-account folder name only when its `--seen` date is newer than every other name's last-seen date. File mode reads OnlyFans databases only.

With `--postgres [--site onlyfans|fansly]` (default `onlyfans`, without `--data-dir`), lists and adds names in that site's `profiles` table in the PostgreSQL database named by `OFSC_DATABASE_URL` in the current environment (see `POSTGRESQL.md`), with the same listing, CSV output, folder-name rules and refusals. `--add` writes one row (`user_id` is the creator's ID) and its dates in one transaction, kept only if nothing is refused. Requires the PostgreSQL driver and the scraper from the same checkout.

* `scripts/determine_docker_stable_dev_tags.py`: Older CI helper that the current Docker image workflow doesn't call. Asks the GitHub API for commit timestamps to pick Docker image tags.
* `scripts/entry/`: Docker internals. `entrypoint.sh`, `lib_user_setup.sh`, `lib_paths.sh` and `lib_permissions.sh` set up the container user, the data and config paths and the permissions, then start the app.
* `scripts/lint/`: CI lint helper. `python scripts/lint/check_blind_except.py [--update]` counts ruff's BLE001 (blind except) and S110 (try/except/pass) findings per file in `ofscraper/data/api` and `ofscraper/db` and fails when a count differs from `blind_except_baseline.json`. `--update` rewrites the baseline; commit it after removing findings.
* `scripts/retry_action.sh`: CI helper. Retries a command up to N times, with a sleep between attempts.

## `--action` modes

The main program's `--action` (`-a`) picks what a non-interactive run does; without it, the interactive menu asks. Values can be combined (e.g. `download,like`).

* `unlike`: Removes likes from already-liked posts in the selected like areas, the same way as `like`. It runs `like.process_unlike`. It can't be combined with `like`.
* `like`: Likes (favourites) posts in the selected like areas that aren't liked yet. It sends one request at a time, with a random sleep between requests (`MIN/MAX_SLEEP_DURATION_LIKE`). A post that toggles the wrong way is toggled again. It runs `like.process_like`, then the after-like action script. The code warns that OnlyFans allows about 1000 likes per hour.
* `download`: Scrapes the selected areas (`--posts`) for each selected creator. It downloads the media that pass the filters into `save_location`, using `dir_format` and `file_format`, and records them in the creator's `user_data.db`. With `--text` (or `--text-only`) it also writes post text to `.txt` files. It runs `downloader()` in `commands/scraper/actions/download`, then the after-download action script.

## Options

### Program Options

#### `--version`

**Also:** `-v` · **Type:** flag · **Default:** off · **Commands:** all

Show the version and exit.

**Dest:** `version`

#### `--config`

**Also:** `-cg` · **Type:** text · **Default:** none · **Commands:** all

Change location of config folder/file

**Dest:** `config` · **Defined in:** `ofscraper/utils/args/parse/arguments/program.py`

#### `--profile`

**Also:** `-r` · **Type:** text · **Default:** none · **Commands:** all

Change which profile to use. If not set, the default profile from config.json is used. Profiles are always inside the config.json parent directory.

**Dest:** `profile` · **Defined in:** `ofscraper/utils/args/parse/arguments/program.py`

#### `--site`

**Type:** one of `onlyfans`, `fansly` · **Default:** none · **Commands:** all

Site to use for this run: onlyfans or fansly. If not set, the profile's site.json decides, and OnlyFans is the default.

**Dest:** `site` · **Defined in:** `ofscraper/utils/args/parse/arguments/program.py`

#### `--env-files`

**Type:** path; repeatable · **Default:** none · **Commands:** all

Environment file to load (.env, .yaml/.yml or .json). Can be given more than once; later files win.

Loaded before settings are built. It replaces `advanced_options.env_files` instead of adding to it.

**Dest:** `env_files` · **Defined in:** `ofscraper/utils/args/parse/arguments/program.py`

### Logging Options

#### `--output`

**Also:** `-p` · **Type:** one of `PROMPT`, `LOW`, `NORMAL`, `DEBUG` · **Default:** `'NORMAL'` · **Commands:** all

Set console output log level

`LOW` and `PROMPT` hide status lines and the live progress screen. Errors and prompts still show. `LOW` also shows warnings; `PROMPT` shows only errors.

**Dest:** `output_level` · **Defined in:** `ofscraper/utils/args/parse/arguments/logging.py`

#### `--no-live-screen`

**Also:** `-nl`, `--no-live`, `--no-rich` · **Type:** flag · **Default:** off · **Commands:** all

Turn off Rich UI live display features

**Dest:** `no_rich` · **Defined in:** `ofscraper/utils/args/parse/arguments/logging.py`

#### `--discord`

**Also:** `-dc` · **Type:** one of `OFF`, `LOW`, `NORMAL` · **Default:** `'OFF'` · **Commands:** all · **Config fallback:** `discord`

Set Discord log level

**Dest:** `discord_level` · **Defined in:** `ofscraper/utils/args/parse/arguments/logging.py`

#### `--log`

**Also:** `-l` · **Type:** one of `OFF`, `LOW`, `NORMAL`, `DEBUG`, `TRACE` · **Default:** none · **Commands:** all

Set log file level

**Dest:** `log_level` · **Defined in:** `ofscraper/utils/args/parse/arguments/logging.py`

### Download Options

#### `--no-auto-resume`

**Also:** `-ar` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `download_options.auto_resume`

Clean up temp .part files (removes resume ability)

Turns `download_options.auto_resume` off for the run.

**Dest:** `no_auto_resume` · **Defined in:** `ofscraper/utils/args/parse/arguments/download.py`

#### `--downloadbars`

**Also:** `-db`, `--download-bars`, `--download-bar` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `advanced_options.downloadbars`

Show individual download progress bars

**Dest:** `downloadbars` · **Defined in:** `ofscraper/utils/args/parse/arguments/download.py`

#### `--downloadsem`

**Also:** `-sd`, `--downloadsems`, `--download-sems`, `--download-sem`, `--sems`, `--sem` · **Type:** integer · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `performance_options.download_sems`

Number of downloads at the same time (overrides performance\_options.download\_sems).

**Dest:** `download_sem` · **Defined in:** `ofscraper/utils/args/parse/arguments/download.py`

#### `--download-limit`

**Also:** `-dl` · **Type:** text, parsed by `parse_size` · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `performance_options.download_limit`

Maximum download speed per second. Accepts a human-readable size ('10MB') or bytes per second.

Values below 1024 bytes per second are raised to 1024. All downloads in the run share the limit.

**Dest:** `download_limit` · **Defined in:** `ofscraper/utils/args/parse/arguments/download.py`

#### `--allow-dupes`

**Also:** `-ad`, `--allow-dupe-downloads`, `--no-allow-dupes` · **Type:** flag · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Download media that is in several posts once for each post, instead of once (default: ALLOW\_DUPE\_MEDIA, off)

Without this option, `ALLOW_DUPE_MEDIA` decides (`merged_settings`); `--no-allow-dupes` turns it off for the run. When on, media appearing in several posts is downloaded once per post, and each copy is tracked per `(media_id, post_id)` (`downloaded_media_ids`), so later runs still download copies from posts not yet saved. Applies to OnlyFans and Fansly. Each copy gets its own file (see `file_options.filename_collision`) and its own `medias` row update. A Purchased copy is downloaded like any other post's copy, even if the media is also in Messages or another post. However, a message listed in Purchased under the same ID counts as one post and is downloaded once. The `metadata` command and the Fansly silent-video check read each post's own record. Copies already marked downloaded by a run without this option still count as downloaded.

**Dest:** `allow_dupe_downloads` · **Defined in:** `ofscraper/utils/args/parse/arguments/download.py`

### Media Filters Options

#### `--quality`

**Also:** `-q` · **Type:** one of `240`, `720`, `source` · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Lowest video quality to accept (downloads the smallest available at or above it, or source)

The lowest video quality to accept. The smallest available quality at or above it is downloaded, or `source` when none matches (`ofscraper/utils/args/accessors/quality.py`, `classes/of/media.py`). Without this option, `source` is used.

**Dest:** `quality` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--mediatype`

**Also:** `-mt`, `--mediatypes`, `--media-types`, `--media-type` · **Type:** one of `Videos`, `Audios`, `Images`; repeatable · **Default:** `[]` · **Commands:** all · **Config fallback:** `download_options.filter`

Filter by media type (Videos, Audios, Images)

**Dest:** `mediatypes` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--size-max`

**Also:** `-sx` · **Type:** text, parsed by `parse_size` · **Default:** none · **Commands:** all · **Config fallback:** `content_filter_options.file_size_max`

Filter out files larger than the given size (bytes or human-readable, e.g., 10mb)

**Dest:** `size_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--size-min`

**Also:** `-sm` · **Type:** text, parsed by `parse_size` · **Default:** none · **Commands:** all · **Config fallback:** `content_filter_options.file_size_min`

Filter out files smaller than the given size (bytes or human-readable, e.g., 10mb)

**Dest:** `size_min` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--length-max`

**Also:** `-lx` · **Type:** integer range · **Default:** none · **Commands:** all · **Config fallback:** `content_filter_options.length_max`

Max duration in seconds (whole number, e.g. 90); only applies to videos

**Dest:** `length_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--length-min`

**Also:** `-lm` · **Type:** integer range · **Default:** none · **Commands:** all · **Config fallback:** `content_filter_options.length_min`

Min duration in seconds (whole number, e.g. 90); only applies to videos

**Dest:** `length_min` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--media-id`

**Also:** `-mid` · **Type:** text; repeatable · **Default:** none · **Commands:** all

Filter media based on media id

**Dest:** `media_id` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`, `ofscraper/utils/args/parse/arguments/metadata_filters.py`

#### `--max-media-count`

**Also:** `-mxc` · **Type:** integer · **Default:** `0` · **Commands:** main program, `manual`, `metadata`, `db` · **Config fallback:** `download_options.max_post_count`

Maximum number of media to process

**Dest:** `max_count` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--media-sort`

**Also:** `-mst` · **Type:** one of `random`, `text`, `text`, `date`, `filename` · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Changes media processing order before actions (e.g. for download)

**Dest:** `mediasort` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--media-desc`

**Also:** `-mdc` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Sort the media list in descending order

**Dest:** `media_desc` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--force-all`

**Also:** `-e`, `--dupe`, `--dupe-all` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `metadata`

Download all found files regardless of database presence

**Dest:** `force_all` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--force-model-unique`

**Also:** `-eq`, `--dupe-model-unique`, `--dupe-model` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `metadata`

Only download found files with media ids not present for the current model in the database

**Dest:** `force_model_unique` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--before`

**Also:** `-be` · **Type:** Arrow · **Default:** none · **Commands:** main program, `manual`, `metadata`

Process media from posts at or before the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago') for likes, unlikes, and downloads

On Fansly, a timeline or message scan starts at this date instead of the newest post, skipping newer pages. With `--after`, only pages in that range are fetched. Walls (the Labels area) and purchases are still scanned normally.

**Dest:** `before` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--after`

**Also:** `-af` · **Type:** Arrow · **Default:** none · **Commands:** main program, `manual`, `metadata`

Process media from posts at or after the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago') for likes, unlikes, and downloads

**Dest:** `after` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--redownload`

**Also:** `-rd`, `--re-download` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `metadata`

Forces scanning and redownloading of all files in selected post types

Sets `force_all`, `--after 2000` and `--before` tomorrow for the run. Every item is scanned and downloaded again. The merge happens in `merged_settings`.

**Dest:** `redownload` · **Defined in:** `ofscraper/utils/args/parse/arguments/media_content.py`

#### `--preview`

**Also:** `-pv`, `-npv`, `--no-preview` · **Type:** flag · **Default:** none · **Commands:** `db`

Filter media by preview status. \[select one --preview or --no-preview]

**Dest:** `preview`

#### `--created-before`

**Also:** `-cb` · **Type:** Arrow · **Default:** none · **Commands:** `db`

Only media created on or before the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago').

**Dest:** `created_before` · **Defined in:** `ofscraper/utils/args/parse/arguments/metadata_filters.py`

#### `--created-after`

**Also:** `-cf` · **Type:** Arrow · **Default:** none · **Commands:** `db`

Only media created on or after the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago').

**Dest:** `created_after` · **Defined in:** `ofscraper/utils/args/parse/arguments/metadata_filters.py`

### Filename Modification Options

#### `--original`

**Also:** `-g` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `file_options.truncation_default`

Don't truncate long paths

Turns off file name truncation for the run, whatever `file_options.truncation_default` says.

**Dest:** `original` · **Defined in:** `ofscraper/utils/args/parse/arguments/file.py`

#### `--space-replacer`

**Also:** `-sr` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `file_options.space_replacer`

Character to replace spaces with

**Dest:** `space_replacer` · **Defined in:** `ofscraper/utils/args/parse/arguments/file.py`

#### `--textlength`

**Also:** `-tl` · **Type:** integer · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `file_options.textlength`

Max length of text

**Dest:** `textlength` · **Defined in:** `ofscraper/utils/args/parse/arguments/file.py`

#### `--text-type`

**Also:** `-tt` · **Type:** one of `word`, `letter` · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `file_options.text_type_default`

Measure text length by word or letter

**Dest:** `text_type` · **Defined in:** `ofscraper/utils/args/parse/arguments/file.py`

### Posts Filters Options

#### `--posts`

**Also:** `-o`, `--post` · **Type:** one of `Highlights`, `All`, `Archived`, `Messages`, `Timeline`, `Pinned`, `Streams`, `Stories`, `Purchased`, `Profile`, `Labels`, `Labels+`, `Labels*`; repeatable · **Default:** `[]` · **Commands:** main program, `metadata`, `db`

Select areas for batch actions (comma or space separated). Note: 'all' excludes labels unless OFSC\_INCLUDE\_LABELS\_ALL is on. To include them, use 'all,labels' or specific tags like 'labels+' or 'labels\*'.

**Dest:** `posts` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--download-area`

**Also:** `-da` · **Type:** one of `Highlights`, `All`, `Archived`, `Messages`, `Timeline`, `Pinned`, `Stories`, `Purchased`, `Profile`, `Streams`, `Labels`, `Labels+`, `Labels*`; repeatable · **Default:** `[]` · **Commands:** main program

Perform download in specified areas (comma or space separated). Has preference over --posts for download action

**Dest:** `download_area` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--like-area`

**Also:** `-la` · **Type:** one of `All`, `Archived`, `Timeline`, `Pinned`, `Labels`, `Streams`; repeatable · **Default:** `[]` · **Commands:** main program

Perform like/unlike in selected areas (comma or space separated). Has preference over --posts for like action

**Dest:** `like_area` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--protected-only`

**Also:** `-to`, `-no`, `--normal-only` · **Type:** flag · **Default:** none · **Commands:** main program, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`, `db`

Filter downloads by type. --protected-only: For content that requires decryption. --normal-only: For content that does not require decryption.

**Dest:** `download_type`

#### `--post-id`

**Also:** `-pd`, `--postid` · **Type:** text; repeatable · **Default:** none · **Commands:** main program, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`, `db`

Filter posts based on post id

**Dest:** `post_id` · **Defined in:** `ofscraper/utils/args/parse/arguments/metadata_filters.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--max-post-count`

**Also:** `-xc` · **Type:** integer · **Default:** `0` · **Commands:** main program · **Config fallback:** `download_options.max_post_count`

Maximum number of media items to process per creator (same setting as --max-media-count).

**Dest:** `max_count` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--post-sort`

**Also:** `-pst` · **Type:** one of `date` · **Default:** `'date'` · **Commands:** main program, `metadata`

Changes post processing order before actions (e.g. for like or unlike)

**Dest:** `post_sort` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--post-desc`

**Also:** `-pdc` · **Type:** flag · **Default:** off · **Commands:** main program

Sort the post list in descending order (e.g. for like or unlike)

**Dest:** `post_desc` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--filter`

**Also:** `-ft` · **Type:** text; repeatable · **Default:** `['.*']` · **Commands:** main program, `metadata`

Filter posts by regex (case-sensitive if uppercase characters included) uses raw Python string

**Dest:** `filter` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--neg-filter`

**Also:** `-nf` · **Type:** text; repeatable · **Default:** `[]` · **Commands:** main program, `metadata`

Filter posts to exclude those matching regex (case-sensitive if uppercase characters included) uses raw Python string

**Dest:** `neg_filter` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--block-ads`

**Also:** `-ba` · **Type:** flag · **Default:** off · **Commands:** main program

Filter posts with regex to block posts with common words for advertisements

**Dest:** `block_ads` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--label`

**Also:** `-lb` · **Type:** text; repeatable · **Default:** `[]` · **Commands:** main program, `metadata`

Filter by label

**Dest:** `label` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--mass-only` (main program)

**Also:** `-mm`, `-ms`, `--mass-skip` · **Type:** flag · **Default:** none · **Commands:** main program

Flag for enabling/disabling mass content or promos \[select one --mass-only or --mass-skip]

**Dest:** `mass_msg` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--only-timed`

**Also:** `-ok`, `-sk`, `--skip-timed` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`

Flag for enabling/disabling promotional or temporary posts \[select one --only-timed or --skip-timed]

**Dest:** `timed_only`

#### `--scrape-paid`

**Also:** `-sp` · **Type:** flag · **Default:** off · **Commands:** main program, `metadata`

Scrape entire paid page (can take a very long time)

**Dest:** `scrape_paid` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`, `ofscraper/utils/args/parse/group_bundles/metadata.py`

#### `--text` (main program)

**Also:** `-t`, `--download-text` · **Type:** flag · **Default:** off · **Commands:** main program

Download text files alongside media

**Dest:** `text` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--text-only` (main program)

**Also:** `-tx`, `--download-text-only` · **Type:** flag · **Default:** off · **Commands:** main program

Download ONLY text files, skipping all media

Also turns on `--text`. Text files are written and media is skipped.

**Dest:** `text_only` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--mass-only` (`metadata`)

**Also:** `-mm`, `--mass-skip` · **Type:** flag · **Default:** none · **Commands:** `metadata`

Flag for enabling/disabling mass content or promos \[select one --mass-only or --mass-skip]

**Dest:** `mass_msg` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

### Automation Options

#### `--action`

**Also:** `-a`, `--actions` · **Type:** one of `unlike`, `like`, `download`; repeatable · **Default:** `[]` · **Commands:** main program

Select batch action(s) to perform \[like,unlike,download]. Accepts space or comma-separated list. Like and unlike cannot be combined.

**Dest:** `actions` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

#### `--daemon`

**Also:** `-d` · **Type:** float · **Default:** none · **Commands:** main program

Run script in the background. Set value for how many minutes between script runs

**Dest:** `daemon` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

#### `--live`

**Type:** flag · **Default:** off · **Commands:** main program

Fansly only: record the selected creators (all followed creators without -u) who are live now, then continue

**Dest:** `live` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

#### `--live-watch`

**Type:** flag · **Default:** off · **Commands:** main program

Fansly only: keep checking who is live and record them; with --daemon it runs beside the scheduled scrapes

**Dest:** `live_watch` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

#### `--live-interval`

**Type:** integer range · **Default:** none · **Commands:** main program

Fansly only: seconds between live checks in --live-watch (default 60, plus up to 10 s of jitter)

**Dest:** `live_interval` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

#### `--live-max`

**Type:** integer range · **Default:** none · **Commands:** main program

Fansly only: most livestreams recorded at the same time (default 2)

**Dest:** `live_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

#### `--live-chat`

**Type:** flag · **Default:** off · **Commands:** main program

Fansly only: also save livestream chat to a .jsonl file (read-only; off by default)

**Dest:** `live_chat` · **Defined in:** `ofscraper/utils/args/parse/arguments/automatic.py`

### User Selection Options

#### `--usernames` (`usernames`)

**Also:** `-u`, `--username`, `--users`, `--user` · **Type:** text; repeatable · **Default:** none · **Commands:** main program, `metadata`, `db`

Select which usernames to process (name,name2). Set to ALL for all users

**Dest:** `usernames` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/user_select.py`

#### `--excluded-username`

**Also:** `-eu` · **Type:** text; repeatable · **Default:** none · **Commands:** main program, `metadata`, `db`

Select which usernames to exclude (name,name2). Has preference over --username. Also skips these models during --scrape-paid, e.g. --scrape-paid --excluded-username name

**Dest:** `excluded_username` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_select.py`

#### `--user_list`

**Also:** `-ul`, `--user-list`, `--userlist`, `--userlists`, `--user-lists` · **Type:** text; repeatable · **Default:** none · **Commands:** main program, `metadata`, `db` · **Config fallback:** `advanced_options.default_user_list`

Filter by userlist. Note: the lists 'ofscraper.main', 'ofscraper.expired', and 'ofscraper.active' are reserved and should not be the name of any list you have on OF

**Dest:** `userlist` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_select.py`

#### `--black_list`

**Also:** `-bl`, `--black-lists`, `--blacklist`, `--blacklists`, `--black-list` · **Type:** text; repeatable · **Default:** none · **Commands:** main program, `metadata`, `db` · **Config fallback:** `advanced_options.default_black_list`

Remove all users from selected list. Note: the lists 'ofscraper.main', 'ofscraper.expired', and 'ofscraper.active' are reserved and should not be the name of any list you have on OF

**Dest:** `blacklist` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_select.py`

### User List Filter Options

#### `--current-price`

**Also:** `-cp` · **Type:** one of `paid`, `free` · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts based on either the subscription price, lowest claimable promotional price, or regular price

**Dest:** `current_price` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_list.py`

#### `--renewal-price`

**Also:** `-rp` · **Type:** one of `paid`, `free` · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts based on either the lowest claimable promotional price, or regular price

**Dest:** `renewal_price` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_list.py`

#### `--regular-price`

**Also:** `-gp` · **Type:** one of `paid`, `free` · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts based on the regular price

**Dest:** `regular_price` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_list.py`

#### `--promo-price`

**Also:** `-pp` · **Type:** one of `paid`, `free` · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts based on either the lowest promotional price regardless of claimability, or regular price

**Dest:** `promo_price` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_list.py`

#### `--last-seen-only`

**Also:** `-lo`, `-ls`, `--last-seen-skip` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`, `db`

Flag for filtering accounts based on last seen being visible \[select one --last-seen-only or --last-seen-skip]

**Dest:** `last_seen`

#### `--free-trial-only`

**Also:** `-fo`, `-fs`, `--free-trial-skip` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`, `db`

Flag for enabling/disabling accounts with free trial \[must be normally paid] \[select one --free-trial-only or --free-trial-skip]

**Dest:** `free_trial` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`

#### `--promo-only`

**Also:** `-po`, `-ps`, `--promo-skip` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`, `db`

Flag for enabling/disabling accounts with a claimable promo price \[select one --promo-only or --promo-skip]

**Dest:** `promo`

#### `--all-promo-only`

**Also:** `-ao`, `--all-promo-skip` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`, `db`

Flag for enabling/disabling accounts with any promo price \[select one --all-promo-only or --all-promo-skip]

**Dest:** `all_promo` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_list.py`

#### `--active-subscription`

**Also:** `-ts`, `--active-subscriptions`, `-es`, `--expired-subscription`, `--expired-subscriptions` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`, `db`

Flag for enabling/disabling accounts with active or expired subscription \[select one --active-subscription or --expired-subscription]

**Dest:** `sub_status`

#### `--renew-on`

**Also:** `-ro`, `-rf`, `--renew-off` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`, `db`

Flag for enabling/disabling accounts with the renew flag on \[select one --renew-on or --renew-off]

**Dest:** `renewal`

### Advanced User List Filter Options

#### `--promo-price-min`

**Also:** `-ppn` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the lowest promo price matches or falls above the provided value

**Dest:** `promo_price_min` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--promo-price-max`

**Also:** `-ppm` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the lowest promo price matches or falls below the provided value

**Dest:** `promo_price_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--regular-price-min`

**Also:** `-gpn` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the regular price matches or falls above the provided value

**Dest:** `regular_price_min` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--regular-price-max`

**Also:** `-gpm` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the regular price matches or falls below the provided value

**Dest:** `regular_price_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--current-price-min`

**Also:** `-cpn` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the current regular price matches or falls above the provided value

**Dest:** `current_price_min` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--current-price-max`

**Also:** `-cpm` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the current price matches or falls below the provided value

**Dest:** `current_price_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--renewal-price-min`

**Also:** `-rpn` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the renewal regular price matches or falls above the provided value

**Dest:** `renewal_price_min` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--renewal-price-max`

**Also:** `-rpm` · **Type:** integer · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts where the renewal price matches or falls below the provided value

**Dest:** `renewal_price_max` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--last-seen-before`

**Also:** `-lsb` · **Type:** Arrow · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts by last seen being at or before the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago')

**Dest:** `last_seen_before` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--last-seen-after`

**Also:** `-lsa` · **Type:** Arrow · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts by last seen being at or after the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago')

**Dest:** `last_seen_after` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--expired-after`

**Also:** `-ea` · **Type:** Arrow · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts by expiration/renewal being at or after the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago')

**Dest:** `expired_after` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--expired-before`

**Also:** `-eb` · **Type:** Arrow · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts by expiration/renewal being at or before the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago')

**Dest:** `expired_before` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--subscribed-after`

**Also:** `-sa` · **Type:** Arrow · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts by subscription date being after the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago')

**Dest:** `subscribed_after` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

#### `--subscribed-before`

**Also:** `-sb` · **Type:** Arrow · **Default:** none · **Commands:** main program, `metadata`, `db`

Filter accounts by subscription date being at or before the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago')

**Dest:** `subscribed_before` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_user_filter.py`

### Model Sort & Processing Order Options

#### `--sort`

**Also:** `-st` · **Type:** one of `name`, `subscribed`, `expired`, `current-price`, `renewal-price`, `regular-price`, `promo-price`, `last-seen` · **Default:** `'Name'` · **Commands:** main program, `metadata`, `db`

What to sort the model list by

**Dest:** `sort` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_sort.py`

#### `--desc`

**Also:** `-ds` · **Type:** flag · **Default:** off · **Commands:** main program, `metadata`, `db`

Sort the model list in descending order

**Dest:** `desc` · **Defined in:** `ofscraper/utils/args/parse/arguments/user_sort.py`

### Advanced Search & Processing Options

#### `--users-first`

**Also:** `-uf`, `--user-first`, `--usersfirst`, `--userfirst` · **Type:** flag · **Default:** off · **Commands:** main program, `metadata`

Process all users first rather than one at a time (affects --action)

**Dest:** `users_first` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_processing.py`

#### `--username-individual-search`

**Also:** `-fi`, `--user-individual-search`, `-fl`, `--username-list-search`, `--user-list-search` · **Type:** flag · **Default:** none · **Commands:** main program, `metadata`

How to find the --username creators. -fi: look up each username on its own. -fl: fetch your subscriptions and lists, then pick the names. With neither, -fi is used when --username has no more than one name per 12 subscriptions, otherwise -fl.

**Dest:** `username_search`

### Program Scripts

#### `--after-action-script`

**Also:** `-aas` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check` · **Config fallback:** `script_options.after_action_script`

Runs a script after an action for a model completes.

**Dest:** `after_action_script` · **Defined in:** `ofscraper/utils/args/parse/arguments/scripts.py`

#### `--naming-script`

**Also:** `-ns` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check` · **Config fallback:** `script_options.naming_script`

Runs a script to generate the final filename or path for a media item.

**Dest:** `naming_script` · **Defined in:** `ofscraper/utils/args/parse/arguments/scripts.py`

#### `--post-script`

**Also:** `-ps` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check` · **Config fallback:** `script_options.post_script`

Runs a script after processing all users (e.g. after a full scrape).

**Dest:** `post_script` · **Defined in:** `ofscraper/utils/args/parse/arguments/scripts.py`

#### `--after-download-script`

**Also:** `-adl` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check` · **Config fallback:** `script_options.after_download_script`

Runs a script after a download completes.

**Dest:** `after_download_script` · **Defined in:** `ofscraper/utils/args/parse/arguments/scripts.py`

#### `--skip-download-script`

**Also:** `-sdl` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check` · **Config fallback:** `script_options.skip_download_script`

Runs a script to decide whether to skip a download.

**Dest:** `skip_download_script` · **Defined in:** `ofscraper/utils/args/parse/arguments/scripts.py`

#### `--retry-permanent-skips`

**Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`

Ask the skip download script again about the files it skipped for good (skip-permanent) for the creators in this run

Stops treating files skipped for good by `skip_download_script` (`medias.skip_permanent = 1`) as downloaded for this run, so they are passed to the script again for the selected creators. Areas are scanned in full unless `--after` is given, since those files can be in older posts. A file the script keeps is downloaded; `skip-permanent` keeps it skipped for good; a plain skip counts as skipped and resets it to not downloaded so the next run asks again. Without a script set, nothing skips them, so they download. Real downloads and other rows don't change.

**Dest:** `retry_permanent_skips` · **Defined in:** `ofscraper/utils/args/parse/arguments/scripts.py`

### Advanced Program Options

#### `--no-cache`

**Also:** `-nc` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Disable cache and force a fresh sequential API scan

Disables both the general cache and the API cache for the run, and turns off incremental downloads. Setting `advanced_options.cache-mode` to `disabled` in `config.json` does the same.

**Dest:** `no_cache` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--no-api-cache`

**Also:** `-nca` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Force a fresh sequential API scan

Disables only the API response cache. Setting `advanced_options.cache-mode` to `api_disabled` does the same.

**Dest:** `no_api_cache` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--key-mode`

**Also:** `-k` · **Type:** one of `cdrm`, `manual` · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `cdm_options.key-mode-default`

Key mode for decrypting content (cdrm is deprecated: its service no longer works)

`manual` uses the local CDM files (`--private-key`, `--client-id`). `cdrm` is deprecated: its service, cdrm-project.com, no longer works, and each run that uses it warns. It isn't contacted: protected videos are skipped before download, with a message to switch to `manual`. Only a server of your own set in `OFSC_CDRM_URL` is still sent the request headers, cookies included.

**Dest:** `key_mode` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--private-key`

**Also:** `-pk` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `cdm_options.private-key`

Private key path for manual key mode

**Dest:** `private_key` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--client-id`

**Also:** `-ci` · **Type:** text · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `cdm_options.client-id`

Client ID path for manual key mode

**Dest:** `client_id` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--dynamic-rules`

**Also:** `-dr`, `--dynamic-rule` · **Type:** one of `digitalcriminals`, `manual`, `generic`, `xagler`, `rafa`, `dc`, `digital`, `digitals`, `digitalcriminal`, `datawhores` · **Default:** none · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata` · **Config fallback:** `advanced_options.dynamic-mode-default`

Dynamic signing rule source

**Dest:** `dynamic_rules` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--update-profile`

**Also:** `-up` · **Type:** flag · **Default:** off · **Commands:** all

Get up-to-date profile info instead of using cache

**Dest:** `update_profile` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

#### `--auth-fail`

**Also:** `-al`, `--auth-quit` · **Type:** flag · **Default:** off · **Commands:** main program, `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`, `metadata`

Quit on authentication failure rather than prompting

**Dest:** `auth_fail` · **Defined in:** `ofscraper/utils/args/parse/arguments/advanced_program.py`

### Other options

#### `--force`

**Also:** `-fo`, `--forced`, `--forced-scan`, `--force-scan` · **Type:** flag · **Default:** off · **Commands:** `manual`, `msg_check`, `story_check`, `paid_check`, `post_check`

Force retrieval of new posts info from API

**Dest:** `force` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`

#### `--text` (`manual`, `msg_check`, `paid_check`, `post_check`)

**Also:** `-tn`, `--download-text` · **Type:** flag · **Default:** off · **Commands:** `manual`, `msg_check`, `paid_check`, `post_check`

Download text files in addition to media

**Dest:** `text` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--text-only` (`manual`, `msg_check`, `paid_check`, `post_check`)

**Also:** `-tp`, `--download-text-only` · **Type:** flag · **Default:** off · **Commands:** `manual`, `msg_check`, `paid_check`, `post_check`

Download text files, skipping media

Also turns on `--text`. Text files are written and media is skipped.

**Dest:** `text_only` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--url`

**Also:** `-u` · **Type:** text; repeatable · **Default:** none · **Commands:** `manual`, `msg_check`, `post_check`

Scan posts via space or comma separated list of URLs

**Dest:** `url` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/user_select.py`

#### `--file` (`file`)

**Also:** `-f` · **Type:** file; repeatable · **Default:** none · **Commands:** `manual`, `msg_check`, `post_check`

Scan posts via a file with line-separated URL(s)

**Dest:** `file` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`

#### `--usernames` (`check_usernames`)

**Also:** `-u`, `--username`, `--users`, `--user` · **Type:** text; repeatable · **Default:** none · **Commands:** `story_check`, `paid_check`

Creators to scan, by username (name,name2).

**Dest:** `check_usernames` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/user_select.py`

#### `--file` (`file_usernames`)

**Also:** `-f` · **Type:** file; repeatable · **Default:** none · **Commands:** `story_check`, `paid_check`

Scan via a file with line-separated username(s)

**Dest:** `file_usernames` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`

#### `--export`

**Also:** `-ep` · **Type:** path · **Default:** none · **Commands:** `db`

Export the table as a CSV file

**Dest:** `export` · **Defined in:** `ofscraper/utils/args/parse/group_bundles/db.py`

#### `--unmark-permanent-skips`

**Type:** flag · **Default:** off · **Commands:** `db`

Un-mark the files the skip download script skipped for good (skip-permanent) among the selected rows, so the next run asks the script about them again. Filter with the creator, post id and media id options

`ofscraper db` only. From the rows selected by the other options (creator, `--post-id`, `--media-id` and the media filters), keeps only those `skip_download_script` skipped for good, prints them, and resets them to not downloaded with `skip_permanent` cleared. The next normal run asks the script about them again. Because download state is shared across a media item's rows, its rows in other posts change too. Other rows never change. Without this flag, `db` is read-only.

**Dest:** `unmark_permanent_skips` · **Defined in:** `ofscraper/utils/args/parse/group_bundles/db.py`

### Table Filter Options

#### `--unlocked`

**Also:** `-ucl`, `-lc`, `--locked` · **Type:** flag · **Default:** none · **Commands:** `msg_check`, `story_check`, `paid_check`, `post_check`, `db`

Filter media by whether it's unlocked. \[select one --unlocked or --locked]

**Dest:** `unlocked`

#### `--downloaded`

**Also:** `-dwl`, `-ndw`, `--not-downloaded` · **Type:** flag · **Default:** none · **Commands:** `msg_check`, `story_check`, `paid_check`, `post_check`, `db`

Filter media by whether it's downloaded. \[select one --downloaded or --not-downloaded]

**Dest:** `downloaded`

#### `--posted-after`

**Also:** `-pf` · **Type:** Arrow · **Default:** none · **Commands:** `msg_check`, `story_check`, `paid_check`, `post_check`, `db`

Only media from posts posted on or after the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago').

**Dest:** `posted_after` · **Defined in:** `ofscraper/utils/args/parse/arguments/metadata_filters.py`

#### `--posted-before`

**Also:** `-pb` · **Type:** Arrow · **Default:** none · **Commands:** `msg_check`, `story_check`, `paid_check`, `post_check`, `db`

Only media from posts posted on or before the given date (YYYY-MM-DD, MM/DD/YYYY or a relative date such as '3 weeks ago').

**Dest:** `posted_before` · **Defined in:** `ofscraper/utils/args/parse/arguments/metadata_filters.py`

### Content Options

#### `--timeline-strict`

**Also:** `-tls` · **Type:** flag · **Default:** off · **Commands:** `post_check`

When timeline is selected, removes pinned and archived posts

**Dest:** `timeline_strict` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--check-area`

**Also:** `-ca`, `--post`, `--posts` · **Type:** one of `All`, `Archived`, `Timeline`, `Pinned`, `Labels`, `Streams`; repeatable · **Default:** `['Timeline', 'Pinned', 'Archived', 'Streams']` · **Commands:** `post_check`

Select areas to check (multiple allowed, separated by spaces)

**Dest:** `check_area` · **Defined in:** `ofscraper/utils/args/parse/arguments/check.py`, `ofscraper/utils/args/parse/arguments/post_content.py`

### Metadata Options

#### `--metadata`

**Also:** `-md` · **Type:** one of `complete`, `update`, `check` · **Default:** none · **Commands:** `metadata`

METADATA MODES check: Updates metadata fields for the specified area via an API This option does not check for new filenames update: This mode performs two actions: 1. Updates download status and filenames based on the presence of actual files 2. Updates metadata fields for the specified area via an API complete: Marks the download as complete and updates metadata fields via an API It also uses a new filename if one is available

**Dest:** `metadata` · **Defined in:** `ofscraper/utils/args/parse/group_bundles/metadata.py`

#### `--mark-stray-locked`

**Also:** `-ms`, `--mark-stray` · **Type:** flag · **Default:** off · **Commands:** `metadata`

Sets unmatched media items as locked. This is done per API type excluding labels, and is limited to --after and --before range.

**Dest:** `mark_stray` · **Defined in:** `ofscraper/utils/args/parse/group_bundles/metadata.py`

#### `--anon`

**Also:** `-an` · **Type:** flag · **Default:** off · **Commands:** `metadata`

Use anonymous credentials. Forces --individual flag and removes --list flag. Most media is ignored.

**Dest:** `anon` · **Defined in:** `ofscraper/utils/args/parse/group_bundles/metadata.py`

### Sorting for the table

#### `--db-sort`

**Also:** `-dst` · **Type:** one of `posted`, `created`, `filename`, `length`, `postid`, `mediaid`, `size` · **Default:** `'posted'` · **Commands:** `db`

Changes order of table

**Dest:** `db_sort` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`

#### `--db-asc`

**Also:** `-bdc` · **Type:** flag · **Default:** off · **Commands:** `db`

Change the sort order of the table to ascending

**Dest:** `db_asc` · **Defined in:** `ofscraper/utils/args/parse/arguments/post_content.py`
