Keyerror 'email'
Traceback (most recent call last):
File "/run/media/jord/996cac65-f615-45e3-99ae-579cc18556cf/git/OnlyFans/start_ofd.py", line 43, in
Looks like there has been some changes to auth.json (possibly to automate getting the auth_id and sess values). It is looking for certain keypairs in auth.json and not finding them and erroring out.
You need to add:
"email":"",
"password:""
at the bottom of your auth.json file. If your auth is correct it will not try and use them and you can scrape as normal, otherwise it prompts you for geckodriver, I suspect so it can pilot a browser and use those fields to login for you.
It will look something like this:
{
"auth": {
"username": "default",
"auth_id": "<numbers>",
"auth_hash": "",
"auth_uniq_": "",
"sess": "<numbers>",
"app_token": "<numbers>",
"user_agent": "Browser\\User Agent\\ Windows 10 \\ Chrome",
"support_2fa": false,
"active": true,
"email": "",
"password": ""
}
}
The script should automatically add email and password to it .-.
Andddd it isn't. I will fix it.
Use latest commit, thanks.