Tools of-scraper now with DRM support

Mondschein

Bathwater Drinker
Jan 27, 2023
366
22,856
1,552
0fya082315al84db03fa9bf467e3.png
I tried downloading a single DRM video earlier today. It had worked perfectly a couple days ago but now it won't combine the audio and video into a single file. Is there an new ongoing issue or am I doing something wrong?
 

hornyone

Tier 3 Sub
Mar 15, 2022
65
306
389
0fya082315al84db03fa9bf467e3.png
added manual key options in latest commits
It automated once you get the required files

Not putting any files related to this in the repo
You can follow the guide here
Please, Log in or Register to see links and images

set
"key-mode-default":"manual"
in config
or pass --key-mode manual in terrminal

also set

"private-key":
"client-id":

to the appropriate full paths
 
Last edited:
  • PeepoLove
Reactions: ripnsfw222

togatoga

Bathwater Drinker
Mar 11, 2022
44
1,696
1,242
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
Not sure what I'm doing wrong, but I downloaded the "2023.07.07_13:59_82b53e7_package" binary from the Github releases page, got the keys from the videohelp post you shared, and put in --key-mode manual after calling ofscraper in Terminal. I still get no prompt about adding the paths to the keys.
 

togatoga

Bathwater Drinker
Mar 11, 2022
44
1,696
1,242
0fya082315al84db03fa9bf467e3.png
If I edit the config file manually and add it, will it work? I tried editing the config file through terminal but those options never came up. I got the old options as before:
? What would you like your main profile to be? main_profile
? save_location: /my/save/location/
? file_size_limit: 0
? dir_format: {model_username}/{responsetype}/{mediatype}/
? What format do you want for downloaded files {filename}.{ext}
? textlength: 0
? space-replacer:
? date: MM-DD-YYYY
? metadata: {configpath}/{profile}/.data/{model_username}_{model_id}
? filter: ['Videos']
? Number of Download Theads: 8
? Enable Code Execution: No
? mp4decrypt path: /my/path/to/mp4decrypt
? ffmpeg path: /my/path/to/ffmpeg
? discord webhook:

Set mapping for {responsetype} placeholder
? timeline responsetype mapping: posts
? archived responsetype mapping: archived
? pinned responsetype mapping: posts
? message responstype mapping: messages
? paid responsetype mapping: messages
? stories responsetype mapping: stories
? highlight responsetype mapping: stories
? profile responsetype mapping: profile
`config.json` has been successfully edited.
 

000f

悪魔
Feb 3, 2022
163
4,965
1,262
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
No, I don't suggest doing that. I had the same issue as you where my config file was not updating with the new params.

I ran these commands:

python3 -m pip uninstall ofscraper

py -3 -m pip install git+
Please, Log in or Register to see links and images


Then opened a cmd prompt, typed ofscraper and it updated my config with the new params. Might work for you.
 

HyperAutistic99

Casual
Dec 13, 2022
15
35
139
0fya082315al84db03fa9bf467e3.png
sorry if this is a stupid question but how do I install the latest commit on macos when I used
pip3 install ofscraper
to install the regular version?

When I download the zip for mac, unpack it and launch ofscraper, the auth and config files stay the same, meaning I don't have new entries where I can add "key-mode-default":"manual" and "private-key": "client-id": path. TIA
 

HyperAutistic99

Casual
Dec 13, 2022
15
35
139
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes

I did that:
uninstalled ofscraper and then tried to install it that way py -3 -m pip install git+https://github.com/datawhores/OF-Scraper.git
but I get the following error:
zsh: command not found: py python 3.11 is installed
I can install it only by executing the command like this:
python3 -m pip install git+https://github.com/datawhores/OF-Scraper.git
but I still won't get an updated config.json, even if I manually deleted the old one before opening ofscraper again.
So it looks like this way of installing it doesn't seem to fetch the latest commit...

Isn't there a way to use the url to the commit directly for installing?

Please, Log in or Register to see links and images
 

HyperAutistic99

Casual
Dec 13, 2022
15
35
139
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
Ok the option did not appear inside the terminal when editing the config file that way. It immediately jumped from discord to responsetype.
Editing the config file manually with an text editor on the other hand now shows me the options private-key, client-id and key-mode-default (woo hoo) thanks for your help :)
 
  • Like
Reactions: togatoga

togatoga

Bathwater Drinker
Mar 11, 2022
44
1,696
1,242
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
I manually set the parameters in the config and everything is showing up in the debug. But when I try to use it, the debug log still says it's trying to connect with cdrm-project. I was under the assumption "key-mode-default" was supposed to bypass that?

I'm using 2.6.4 (installed via pip3) and 2.6.4+main.82b53e7 (via binary file). Both try to connect to cdrm.

Code:
Please, Log in or Register to view codes content!