Tools of-scraper now with DRM support

Yeah, I think that's why I went back to 3.12.9, I didn't want to spend time trying to figure out how to get the new config file stuff to work.
MY CDM stuff is:
Code:
 "cdm_options": {
"private-key": "C:/Users/admin/.config/ofscraper/Keys/device_private_key",
"client-id": "C:/Users/admin/.config/ofscraper/Keys/device_client_id_blob",
"key-mode-default": "manual",
"keydb_api": ""
},
Change the file locations to wherever you have them and remember to use forward slash.
 
For any version 3.13.4 and higher, this config is no longer supported:
Code:
 "advanced_options": {
"dynamic-mode-default": "generic",
"downloadbars": true,
"cache-mode": "sqlite",
"rotate_logs": true,
"custom_values": {
"DYNAMIC_GENERIC_URL": "https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json"
},
You don't need the custom value and can just set the dynamic-mode default to "rafa" instead of "generic"
Code:
 "advanced_options": {
"dynamic-mode-default": "rafa",
I've had a similar problem. Not sure if it'll solve yours, but I had to install ffmpeg version 7.1.1 or lower to get DRM videos to download properly.
 
Does anyone know how to fix the corrupted video download?
Since I upgrade to 3.13.4, some vides are not downloaded correctly

No prob with drm pictures, but the videos are giving me deadache.
I checked on github and tried several fixes, such as different version of ffmpeg and different rules.
I also tried to downgraded to 3.12.9, but the script exits after initialising.
 
Code:
Exception ignored in:
Traceback (most recent call last):
File "/Users//private/ofscraper/venv/lib/python3.13/site-packages/tenacity/__init__.py", line 462, in prepare_for_next_attempt
self.outcome = None
RuntimeError: async generator ignored GeneratorExit
I'm getting this on each attempt to download a file, and FAQ/Github don't have anything. Any ideas? Just installed and set up via PIP on a clean venv
Edit: Figured it out with the config logging.
`code-execution` is now removed from config.json on run, so the extension correction filename key in the tutorial doesn't work anymore (tested on 3.13.12).
 
Any tip for Step 3?
I opened cmd and it did not work as you can not add "root" to a .exe file? So I am kind of confused why are there linux commands?
adb.exe root
adb.exe push C:\Users\\frida-server /data/local/tmp/
adb.exe shell
chmod 755 /data/local/tmp/frida-server
/data/local/tmp/frida-server &
Error:
C:\Users\\platform-tools-latest-windows\platform-tools>adb.exe root
adbd cannot run as root in production builds
 
you need a rooted android device to run frida.
the error tells you the issue.
 
can anyone help a dumb fuck like me? I have some vids I wanna download but got no fucking idea what to do. I have homebrew on terminal installed. Downloaded uv from it and then downloaded ofscrapper using uv. I don’t know wtf to do after that
 
do you have a link for their discord? that one git page doesnt work. seems CDRM is down so i need to set up my own keys?
 
That's the only reliable way. It's a pain to set up but you only need to do it once.
 
Hi ppl!
I have been trying to setup ofscraper, but am repeatedly facing auth failed.
I am on v3.14.7.
Here is my config file:
Code:
{
"main_profile": "main_profile",
"metadata": "{configpath}/{profile}/.data/{model_id}",
"discord": "",
"file_options": {
"save_location": "/home/user/Data/ofscraper",
"dir_format": "{model_username}/{responsetype}/{value}/",
"file_format": "{date}_{filename}.{custom.get(ext,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,
"verify_all_integrity": false
},
"binary_options": {
"ffmpeg": ""
},
"cdm_options": {
"private-key": "/home/user/Downloads/keys/private_key.pem",
"client-id": "/home/user/Downloads/keys/client_id.bin",
"key-mode-default": "manual"
},
"performance_options": {
"download_sems": 6,
"download_limit": 0
},
"content_filter_options": {
"block_ads": false,
"file_size_max": 0,
"file_size_min": 0,
"length_max": 0,
"length_min": 0
},
"advanced_options": {
"dynamic-mode-default": "generic",
"custom_values": {
"DYNAMIC_GENERIC_URL": "https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json"
},
"skip_unavailable_content": true,
"downloadbars": false,
"cache-mode": "sqlite",
"rotate_logs": true,
"sanitize_text": false,
"temp_dir": null,
"remove_hash_match": false,
"infinite_loop_action_mode": false,
"incremental_downloads": true,
"default_user_list": "main",
"default_black_list": [],
"logs_expire_time": 0,
"ssl_verify": "custom",
"env_files": []
},
"script_options": {
"after_action_script": null,
"post_script": null,
"naming_script": null,
"after_download_script": null,
"skip_download_script": null
},
"responsetype": {
"timeline": "Posts",
"message": "Messages",
"archived": "Archived",
"paid": "Messages",
"stories": "Stories",
"highlights": "Stories",
"profile": "Profile",
"pinned": "Posts",
"streams": "Streams"
}
}
I am trying to use Cookie Helper extension. I have tried multiple times to paste its output, yet every time I try to download, it shows auth failed and asks for auth again. I have painstakingly fetched widevine keys and set it up, and now failing at auth is very frustrating. Please help me out ^_^ Thanks!
UPDATE:
Thanks to
I got the auth to work. Also, thereafter I faced another issue where downloading media caused the following exception:
Code:
Exception ignored in:
Traceback (most recent call last):
File "/home/user/.local/share/uv/tools/ofscraper/lib/python3.12/site-packages/tenacity/__init__.py", line 462, in prepare_for_next_attempt
self.outcome = None
^^^^^^^^^^^^
RuntimeError: async generator ignored GeneratorExit
Thanks to
I could resolve it.
My final working config for v3.14.7
Code:
{
"main_profile": "main_profile",
"metadata": "{configpath}/{profile}/.data/{model_id}",
"discord": "",
"file_options": {
"save_location": "/home/user/Data/ofscraper",
"dir_format": "{model_username}/{responsetype}/{value}/",
"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,
"verify_all_integrity": false
},
"binary_options": {
"ffmpeg": ""
},
"cdm_options": {
"private-key": "/home/user/Downloads/keys/private_key.pem",
"client-id": "/home/user/Downloads/keys/client_id.bin",
"key-mode-default": "manual"
},
"performance_options": {
"download_sems": 6,
"download_limit": 0
},
"content_filter_options": {
"block_ads": false,
"file_size_max": 0,
"file_size_min": 0,
"length_max": 0,
"length_min": 0
},
"advanced_options": {
"dynamic-mode-default": "rafa",
"skip_unavailable_content": false,
"downloadbars": true,
"cache-mode": "sqlite",
"rotate_logs": true,
"sanitize_text": false,
"temp_dir": null,
"remove_hash_match": false,
"infinite_loop_action_mode": false,
"incremental_downloads": true,
"default_user_list": "main",
"default_black_list": [],
"logs_expire_time": 0,
"ssl_verify": "custom",
"env_files": []
},
"script_options": {
"after_action_script": null,
"post_script": null,
"naming_script": null,
"after_download_script": null,
"skip_download_script": null
},
"responsetype": {
"timeline": "Posts",
"message": "Messages",
"archived": "Archived",
"paid": "Messages",
"stories": "Stories",
"highlights": "Stories",
"profile": "Profile",
"pinned": "Posts",
"streams": "Streams"
}
}
 
I couldn’t get it to work , could i give my account to someone to rip a of account for me ? Theres no money or cards attached so just 1 sub
 
Link to the guide? I just spent hours installing this on mac and all the DRM videos are not downloading...
 
I managed to setup it on mac and it worked. Do let me know if u need help, if still facing issue.
 
Back
Top