OF-Scraper
  • Welcome
  • Requirements
  • Install
    • Pre-Install Guides
      • Linux
      • Windows
      • Mac
    • PIPX Install
    • PIP Install
    • Binary Releases
    • Docker
    • Release Info
    • Managing Multiple Python Versions
  • Getting Started and Settings
    • Config Options
      • Config Location
      • General Options
      • File Output Options
        • Placeholders
        • Responsetype Placeholders
      • Download Options
        • Download Toggles
        • Media Filtering Options
        • Advanced Download Options
      • Setting metadata path
      • Binaries Options
      • CDM Options
      • Performance Options
        • Values to Pick
      • Script Options
      • Advanced config options
        • Changing Const Values
        • Mediatype overwrites
    • Depreciated Options
    • Auth
    • Controlling Output/Logs
    • Migrating from Digitalcriminal's script
  • Using the Scraper
    • Using Prompts
      • Old Menu
      • Page 2
    • Username selection or Fuzzy Search
    • Basic Automation with command-line
      • Basic Actions
        • Liking/Unliking Post
        • Downloading Content
          • Downloading Text Files
          • Downloading Purchases From Deleted Models
        • Multiple Actions
      • Model Filtering/Sorting
        • Price Filtering/Sort
      • Advanced Args
      • Scripting tips
      • Enable label scan
    • Recipes
      • Adding Proxy
      • Redownload Deleted Downloads
  • Content Check Modes
    • Table Columns
    • Table Management
      • Pre 3.10.7 filtering
  • Scraping Individual Posts or Media
  • Metadata
    • Schema
    • Creating Metadata
    • Metadata location
  • CDM Setup
    • CDM issues
  • FAQ/Common Issues
    • Page 1
  • Command Reference
    • Shared Options
      • General Program Options
        • Program Options
        • Logging Options
        • Filename Modification Options
        • Media Filters Options
        • Download Options
        • Advanced Program Options
      • Shared Scrape and Metadata Check Mode Options
        • User List Filter Options
          • Advanced User Filters
        • User Selection Options
        • Model Sorting & Processing Options
        • Content Options
        • Automation Options
        • Advanced Search & Processing Options
    • Main Scraper Options
    • Metadata Check Mode Options
    • Content Check Modes Options
    • Manual Mode Options
  • Request Change to Doc
  • Testing
Powered by GitBook
On this page
  • Selecting Posts
  • By post type
  • Options
  • Bypass dupe check
  • Filter Post by Date
  • Before
  • After
  • Valid Inputs
  • Dehumanize Strings
  • Filtering Timed Post (Promotional)
  • Filtering by text content
  • Search entire paid page
  1. Using the Scraper
  2. Basic Automation with command-line
  3. Basic Actions

Downloading Content

Selecting Posts

By post type

A comma-separated list indicating the posts from which you wish to download content.

 ofscraper --action download --posts highlights,timeline

multiple calls

 ofscraper --action download --posts highlights --posts timeline

Duplicates will be removed

Options

  • profile

  • highlights

  • timeline

  • archived

  • stories

  • messages

  • purchased

  • pinned

  • labels

Special Options

  • all (adding this option means scraping highlights,timeline,archived,stories,pinned,purchased and messages)

  • labels* or labels+ (This means scraping all+labels)

remove post type

You can add remove a post type by prepending the type with a hyphen (-). This will remove any selection, including those from all


Bypass dupe check

By default, content is stored in a database to prevent duplicate downloads. If you wish to download all available content for the current model, include the '--force-all' argument.

ofscraper --action download --force-all


Filter Post by Date

x should be a valid date

Before

Filters posts on or before the specified date. It functions for downloading, liking, and unliking posts.

ofscraper --action download --before X

After

Filter posts on or after the specified date. It functions for downloading, liking, and unliking posts.

ofscraper --action download --after X

Valid Inputs

Read arrow documentation/repo for all valid inputs

YYYY-MM-DD, YYYY-M-DD, YYYY-M-D, YYYY/MM/DD, YYYY/M/DD, YYYY/M/D, YYYY.MM.DD, YYYY.M.DD, YYYY.M.D, YYYYMMDD, YYYY-DDDD, YYYYDDDD, YYYY-MM, YYYY/MM, YYYY.MM, YYYY

Dehumanize Strings

We can convert certain strings into dates The general rules seem to be (number) (timeframe) (ago)

timeframes

  • week

  • month

  • year

  • second

You can enhance granularity by including a comma. When utilizing debuggers, the output will display in UTC, offering greater detail.

1 year ago, 1 month ago


Filtering Timed Post (Promotional)

skip all timed post

ofscraper --action download --skip-timed

Filtering by text content

This feature can accept regex patterns, but you might need to enclose the string in quotes to escape the input properly. Additionally, using a capital letter will initiate a case-sensitive search.

Filter

This will include only post that match the provided regex patter


ofscraper --action download --filter X

Neg Filter:

This will exclude any posts that match the provided regex pattern.

ofscraper --action download --negfilter X


Search entire paid page

This option is designed to manage situations like when a model account has been deleted

ofscraper --action download --scrape-paid

To exclusively scrape the paid page and skip other prompts

ofscraper --scrape-paid
PreviousLiking/Unliking PostNextDownloading Text Files

Last updated 11 months ago