ツール of-scraperがDRM対応に

うん、それで3.12.9に戻したんだと思う。新しいconfigの動かし方を調べる時間を使いたくなかった。
自分のCDM設定はこんな感じ:
コード:
 "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": ""
},
ファイルの場所は自分の環境に合わせて変えて、スラッシュを使うのを忘れずに。
 
3.13.4以降のバージョンでは、このconfigはもうサポートされていません:
コード:
 "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"
},
カスタム値は不要で、dynamic-modeのdefaultを"generic"の代わりに"rafa"にすればいいだけです
コード:
 "advanced_options": {
"dynamic-mode-default": "rafa",
似たような問題がありました。解決するかわかりませんが、DRM動画を正しくダウンロードするにはffmpegのバージョン7.1.1以下をインストールする必要がありました。
 
壊れた動画ダウンロードの直し方分かる人いますか?
3.13.4にアップグレードしてから、一部の動画が正しくダウンロードされません

DRM画像は問題ないんですが、動画は頭が痛いです。
GitHubを確認していくつか対処法を試しました。ffmpegのバージョンを変えたり、ルールを変えたり。
3.12.9にダウングレードも試しましたが、初期化後にスクリプトが終了してしまいます。
 
コード:
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
ファイルをダウンロードしようとするたびにこれが出ます。FAQやGithubにも何もありません。何か案ありますか?クリーンなvenvでPIP経由でインストールと設定したばかりです
追記:configのログ出力で原因が分かりました。
`code-execution`は実行時にconfig.jsonから削除されるようになったので、チュートリアルにある拡張子修正のファイル名キーはもう機能しません(3.13.12で確認)。
 
ステップ3のヒントありますか?
cmdを開いたんですが、.exeファイルに"root"を追加できないので動きませんでした。だからなぜここにlinuxコマンドがあるのか少し混乱しています
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 &
エラー:
C:\Users\\platform-tools-latest-windows\platform-tools>adb.exe root
adbd cannot run as root in production builds
 
fridaを実行するにはrootを取ったAndroid端末が必要です。
エラーに原因が書いてあります。
 
俺みたいなアホでも助けてくれる人いる?ダウンロードしたい動画があるんだけど、何をすればいいのか全然わからない。ターミナルにhomebrewはインストール済み。そこからuvをダウンロードして、uvでofscrapperをダウンロードした。その後何をすればいいのかマジでわからない
 
discordのリンク持ってますか?あのgitページが動きません。CDRMが落ちてるみたいなので、自分でキーを設定する必要があるんですかね?
 
そのコメントは古いですが、discordとbotはもう存在しません
 
じゃあ唯一の方法はandroid studioでL3 cdmをダンプするあのガイドってこと?
 
それが唯一の確実な方法です。設定するのは面倒ですが、一度やればそれで終わりです。
 
みなさんこんにちは!
ofscraperの設定を試みていますが、何度もauth failedになってしまいます。
バージョンはv3.14.7です。
私のconfigファイルはこちらです:
コード:
{
"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"
}
}
Cookie Helper拡張機能を使おうとしています。何度も出力を貼り付けましたが、ダウンロードを試みるたびにauth failedと表示され、再度認証を求められます。苦労してwidevine keysを取得して設定したのに、認証に失敗し続けるのは本当にイライラします。助けてください ^_^ ありがとうございます!
更新:
↓のおかげで
認証を動かすことができました。その後、メディアをダウンロードするとこの例外が発生する別の問題に直面しました:
コード:
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
↓のおかげで
解決できました。
v3.14.7で動く最終的なconfigはこちらです
コード:
{
"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"
}
}
 
上手く動かせなかったんだけど、誰かにアカウント渡してofアカウントをリップしてもらうってできる?お金もカードも紐付いてないし、サブスク1件だけだから
 
ガイドのリンクある?Macにこれインストールするのに何時間も使ったのに、DRMの動画がダウンロードできない…
 
Macで設定できて動いたよ。まだ問題あるなら助けが必要なら言ってね。
 
戻る
トップ