OF-Scraper icon indicating copy to clipboard operation
OF-Scraper copied to clipboard

Logging not Working

Open basketballhead6 opened this issue 6 months ago • 2 comments

Describe the bug

No log are being created when the script is run.

To Reproduce

Run the script scraping some models. Once complete you will see the error message shown below.

Expected behavior

Logs should be created.

Screenshots/Logs

Error sending log chunk: '

...': name 'traceback' is not defined

Config

{
    "main_profile": "main_profile",
    "metadata": "{configpath}/{profile}/.data/{model_username}_{model_id}",
    "discord": "",
    "file_options": {
        "save_location": "G:\\Personal\\Content-OF",
        "dir_format": "{model_username}/{responsetype}/{value}/{mediatype}/",
        "file_format": "{date}-{filename}.{ext}",
        "textlength": 0,
        "space_replacer": " ",
        "date": "YYYY-MM-DD",
        "text_type_default": "letter",
        "truncation_default": true
    },
    "download_options": {
        "filter": [
            "Images",
            "Audios",
            "Videos"
        ],
        "auto_resume": true,
        "system_free_min": 0,
        "max_post_count": 0
    },
    "binary_options": {
        "ffmpeg": "C:\\Users\\user\\.config\\ofscraper\\ffmpeg.exe"
    },
    "cdm_options": {
        "private-key": "C:\\Users\\user\\.config\\ofscraper\\private_keys\\private_key.pem",
        "client-id": "C:\\Users\\user\\.config\\ofscraper\\private_keys\\client_id.bin",
        "key-mode-default": "manual"
    },
    "performance_options": {
        "download_sems": 6,
        "download_limit": 0
    },
    "content_filter_options": {
        "block_ads": true,
        "file_size_max": 0,
        "file_size_min": 0,
        "length_max": null,
        "length_min": null
    },
    "advanced_options": {
        "code-execution": false,
        "dynamic-mode-default": "generic",
        "downloadbars": true,
        "cache-mode": "sqlite",
        "rotate_logs": true,
        "custom_values": {
            "DEVIINT": "https://raw.githubusercontent.com/deviint/onlyfans-dynamic-rules/b6b1c1ae3910ed6a8bb282197a1c7dfb732fb82f/dynamicRules.json",
            "DYNAMIC_GENERIC_URL": "https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json"
        },
        "sanitize_text": false,
        "temp_dir": null,
        "remove_hash_match": false,
        "infinite_loop_action_mode": false,
        "enable_auto_after": true,
        "default_user_list": "main",
        "default_black_list": "",
        "logs_expire_time": null,
        "ssl_validation": false
    },
    "script_options": {
        "post_download_script": null,
        "post_script": null
    },
    "responsetype": {
        "timeline": "posts",
        "message": "messages",
        "archived": "archived",
        "paid": "messages",
        "stories": "stories",
        "highlights": "stories",
        "profile": "profile",
        "pinned": "posts",
        "streams": "Streams"
    },
    "overwrites": {
        "audios": {},
        "videos": {},
        "images": {},
        "text": {}
    }
}

System Info

  • OS: Windows 11
  • Browser: Chrome
  • Version: 3.13
  • uv install

basketballhead6 avatar Jun 30 '25 06:06 basketballhead6

It looks like you are using 3.13(without a "patch"-level, so not 3.13.x), this issue was fixed in f210771 which was released in 3.13.1.

ghi820 avatar Jun 30 '25 14:06 ghi820

Same problem used pipx

package ofscraper 3.13.4, installed using Python 3.12.7

jerryhard avatar Jul 06 '25 13:07 jerryhard