AUTH Down in Version Higher than 3.13
Describe the bug
Unable to use the script as the script can not authenticate to OnlyFans. This is even happening when pasting a new session using the cookie helper.
To Reproduce
Run the script. It will fail to authenticate and show as down.
Expected behavior
Script should authenticate to OnlyFans and be able to see users you have subscribed to.
Screenshots/Logs
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.2
- uv install
¿porque doble enlace en custom_values, si el de deviint marca 404: Not Found?
¿porque doble enlace en custom_values, si el de deviint marca 404: Not Found?
It's a carry over from when it used to be to work. Just haven't deleted it from the config. I'm using general and AUTH is not working.
https://github.com/datawhores/OF-Scraper/issues/547#issuecomment-2995743536
https://github.com/datawhores/OF-Scraper/issues/547#issuecomment-2995743536
I am using that dynamic rules and the script still will not work. I am currently on 13.3 with the exact same config as above and it's working fine so it's something with the later version of the script that isn't allowing the AUTH to work.
As far as I understood the changes in 3.13.1 (from 3.13) the new --env-file handling removed the ability to set custom_values via config, you'll either have to put the generic definition into a file and supply it via the --env-file argument docs, or set an environment variable before launching the script... (this fixed the issue for me)
--env-file argument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:
.env-files (formatkey=value)*.yaml/*.yml(formatkey: value, flat assignment (so no indentation,...))*.json(format{"key": "value",...}, also flat assignment)*fallback using.envformat
To set the generic URL the key is OF_DYNAMIC_GENERIC_URL defined here
As far as I understood the changes in 3.13.1 (from 3.13) the new
--env-filehandling removed the ability to setcustom_valuesvia config, you'll either have to put the generic definition into a file and supply it via the--env-fileargument docs, or set an environment variable before launching the script... (this fixed the issue for me)
--env-fileargument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:
.env-files (formatkey=value)*.yaml/*.yml(formatkey: value, flat assignment (so no indentation,...))*.json(format{"key": "value",...}, also flat assignment)*fallback using.envformatTo set the generic URL the key is
OF_DYNAMIC_GENERIC_URLdefined here
Yes this is true In the next version you will be able to declare these environment files in the config.json and they will be automatically loaded
As far as I understood the changes in 3.13.1 (from 3.13) the new
--env-filehandling removed the ability to setcustom_valuesvia config, you'll either have to put the generic definition into a file and supply it via the--env-fileargument docs, or set an environment variable before launching the script... (this fixed the issue for me)
--env-fileargument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:
.env-files (formatkey=value)*.yaml/*.yml(formatkey: value, flat assignment (so no indentation,...))*.json(format{"key": "value",...}, also flat assignment)*fallback using.envformatTo set the generic URL the key is
OF_DYNAMIC_GENERIC_URLdefined hereYes this is true In the next version you will be able to declare these environment files in the config.json and they will be automatically loaded
When do you plan on releasing this version @datawhores?
I'm still testing the some changes I made Probably by the end of the week
But I might release a test version for those who want to try it out
I'm still testing the some changes I made Probably by the end of the week
But I might release a test version for those who want to try it out
@datawhores, has this latest release got the ability to set the new env variables in the cofig?
Work with: (Linux FC 41)
export OF_DYNAMIC_GENERIC_URL="https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json"
... btw i must use pyhton 3.11/3.12 and not latest 3.13 becuase is used old uvloop` (v0.19.0) that is incompatible with latest python, this is fixed in uvloop 0.21 - latest vetrsion
Sorry, I'm not sure if this has been mentioned, but I have been using OnlyFans Cookie Helper to retrieve my auth information, and haven't been able to retrieve any subscriptions, and needed to re-enter my auth info every time.
It finally jumped out at me that Cookie Helper was reporting my SESS as DELETED every time I ran it.
sess=deleted;
I got my actual session from developer tools, entered it in manually, and now everything is running fine.
I'm not smart enough to know if this is being caused by something I've done wrong when I installed Cookie Helper. I'm just sharing my experience.
Not sure what the proper resolution was/will be for this, but following
As far as I understood the changes in 3.13.1 (from 3.13) the new
--env-filehandling removed the ability to setcustom_valuesvia config, you'll either have to put the generic definition into a file and supply it via the--env-fileargument docs, or set an environment variable before launching the script... (this fixed the issue for me)
--env-fileargument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:* `.env`-files (format `key=value`) * `*.yaml` / `*.yml` (format `key: value`, flat assignment (so no indentation,...)) * `*.json` (format `{"key": "value",...}`, also flat assignment) * `*` fallback using `.env` formatTo set the generic URL the key is
OF_DYNAMIC_GENERIC_URLdefined here
Not sure what the proper resolution was/will be for this, but following this advice I tried fumbling with an .env file, couldnt get it to work nor get my config file to save after entering it. What ultimately worked was just running:
set OF_DYNAMIC_GENERIC_URL=https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json
Is this issue recurring? I'm running 3.13.12 and it started having auth issues today. Switching to different dynamic rules isn't helping.
I see a 4 day old version of https://github.com/DATAHOARDERS/dynamic-rules is up, and I think I'm pulling it, but still not having any effect.
Anyone else?
Tried all the options:
Dynamic Rule: generic Dynamic Rule: datawhores Dynamic Rule: rafa
None of them work.
Switching to dynamic-mode-default: "dc" worked!
Had to try all I could think of before landing on that one.
Is there a canonical list of the different dynamic rules we should have as available options in our config?