githubEdit

Placeholders

circle-exclamation
chevron-rightWindows path warninghashtag

\ should be escaped or replaced with a \\ or /

Not doing this could lead to an error

Examples:

C:\Users\John.config\ofscraper\bin\ffmpeg.exe => 
C:\Users\John.config\ofscraper\bin\ffmpeg.exe => 
C:/Users/John.config/ofscraper/bin/ffmpeg.exe

Example of generated filenames

The placeholders described below will substitute the {} values

Example Configschevron-right
"file_options": {
            "save_location": "/home/james/Data/ofscraper",
            "dir_format": "/{model_username}/{responsetype}/{mediatype}/",
            "file_format": "{filename}.{ext}",
            "textlength": 0,
            "space-replacer": " ",
            "date": "MM-DD-YYYY",
            "text_type_default": "letter",
            "truncation_default": true
        },

The generated filename based on the example config would be


circle-info

Placeholders are generally the same between options here

dir_path and filename

circle-info

You may use placeholders without any underscores (_)

dir_path

The relative directory path within the save location where files are stored

circle-info

No unique placeholders

filename

The file's name segment in the saved file

circle-info

When configuring filenames, ensure a unique element such as text, media ID, post ID, or filename is added to avoid naming conflict


Text Placeholders

circle-info

Text mediatype will most likely need a overwrite to work properly

Text files are based on posts and have access to all the same placeholders as other media except

Some placeholders will be changed

Downloading Text Fileschevron-right

metadata

Controls where metadata is save

Setting metadata pathchevron-right

response_type placeholder

Responsetype Placeholderschevron-right

Last updated