UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

Keyerror 'email'

Open JordyUSA opened this issue 5 years ago • 4 comments

Traceback (most recent call last): File "/run/media/jord/996cac65-f615-45e3-99ae-579cc18556cf/git/OnlyFans/start_ofd.py", line 43, in apis = main_datascraper.start_datascraper(json_config, site_name_lower) File "/run/media/jord/996cac65-f615-45e3-99ae-579cc18556cf/git/OnlyFans/datascraper/main_datascraper.py", line 60, in start_datascraper apis = main_helper.process_profiles( File "/run/media/jord/996cac65-f615-45e3-99ae-579cc18556cf/git/OnlyFans/helpers/main_helper.py", line 607, in process_profiles api.set_auth_details( File "/run/media/jord/996cac65-f615-45e3-99ae-579cc18556cf/git/OnlyFans/apis/onlyfans/onlyfans.py", line 533, in set_auth_details self.auth.auth_details.email = option["email"] KeyError: 'email'

JordyUSA avatar Mar 13 '21 18:03 JordyUSA

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": "" } }

nepobef avatar Mar 13 '21 22:03 nepobef

The script should automatically add email and password to it .-.

UltimaHoarder avatar Mar 13 '21 23:03 UltimaHoarder

Andddd it isn't. I will fix it.

UltimaHoarder avatar Mar 13 '21 23:03 UltimaHoarder

Use latest commit, thanks.

UltimaHoarder avatar Mar 13 '21 23:03 UltimaHoarder