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
  • --profile
  • --users-first
  • multiple configs
  • multiple profile auth
  • --no-cache
  • -no-api-cache
  1. Using the Scraper
  2. Basic Automation with command-line

Advanced Args


--profile

You can combine this with '--config'.

This option holds precedence over the currently active profile within the configuration file

Change location of profile 


--users-first

This adjustment alters the download order to prioritize fetching links for all selected users initially. While this may lead to a longer wait for downloads to commence, it can prove beneficial in specific scenarios.

ofscraper --user-first


multiple configs

ofscraper --config folder or file

The program attempts to intelligently guess the location of your config folder.

You can observe the locations it's scanning in the table. The checks will cease upon reaching a successful match (True) or reaching the failback check.

Check
config file if True
config folder if True

--config is not passed

$HOME/.config/ofscraper/config.json

$HOME/.config/ofscraper/

config_arg is an existing file

config_arg

config_arg parentdir

config arg is an existing dir

config_arg/config.json

config_arg

config arg has no extension

config_arg/config.json

config_arg

config_arg ends is just a single file

i.e

test.json

$HOME/.config/ofscraper/config_arg

$HOME/.config/ofscraper

Failback always true Note: The only option is for config_arg to be something like /home/me/test.json

config_arg

config_arg parentdir

Shared information

Two configs within the same folder can share

  • Profiles

  • log files

  • cache

  • authorization

Duplication check

This relies on your configuration settings. If two configurations share identical metadata settings, duplicates won't exist between those configurations.


multiple profile auth

Authentication for various accounts is managed via profiles. You can modify the default profile either through the configuration or by using the '--profile' argument.

Example

ofscraper --profile test
config file location=/home/test/.config/ofscraper/config.json

The profile is consistently located within the parent folder of the configuration file and is always appended with '_profile'.

Hence, in this scenario, the profile would be

profile location=/home/test/.config/ofscraper/test_profile


--no-cache

Disables all caching mechanisms and removes retrieval of past data for all data

As a result, synchronous processing is enforced for APIs to ensure each request is completed before the next one begins, since processing multiple API requests concurrently relies on past data This will also disable the use of cache to speed up decryption key retrieval

ofscraper --no-cache

-no-api-cache

Similar to --no-cache, but only disables caching mechanisms and removes retrieval of past data for API use only

As a result, synchronous processing is enforced for APIs to ensure each request is completed before the next one begins, since processing multiple API requests concurrently relies on past data.

ofscraper --no-api-cache
PreviousPrice Filtering/SortNextScripting tips

Last updated 1 year ago