UltimaScraper
UltimaScraper copied to clipboard
Extra Auth no longer working
Just updated to the latest commit: https://github.com/DIGITALCRIMINAL/OnlyFans/commit/acc8aa512332a62282e387b1af7770e13f010b9a
2020-12-01 00:07:46,232 ERROR errors 'supported'
Traceback (most recent call last):
File "E:\OnlyFans\datascraper\main_datascraper.py", line 79, in start_datascraper
json_auth_array += extra_auth_config["supported"][site_name_lower]["auths"]
KeyError: 'supported'
Seems that extra_auth_config is set to an empty object in main_datascraper.py, maybe some leftover debugging that never got sorted?
I managed to get extra_auth temporarily working for myself by applying a very dirty hotfix:
diff --git a/datascraper/main_datascraper.py b/datascraper/main_datascraper.py
index 9b1280e..f63581e 100644
--- a/datascraper/main_datascraper.py
+++ b/datascraper/main_datascraper.py
@@ -5,6 +5,8 @@ import timeit
import copy
from argparse import ArgumentParser
+import json
+
import helpers.main_helper as main_helper
from helpers.main_helper import module_chooser
import modules.bbwchan as m_bbwchan
@@ -42,7 +44,8 @@ def start_datascraper():
domain = json_settings["auto_site_choice"]
path = os.path.join('.settings', 'extra_auth.json')
# extra_auth_config, extra_auth_config2 = main_helper.get_config(path)
- extra_auth_config = {}
+ # extra_auth_config = {}
+ extra_auth_config = json.load(open(path))
exit_on_completion = json_settings['exit_on_completion']
loop_timeout = json_settings['loop_timeout']
main_helper.assign_vars(json_config)
... but this does not verify the format of the config or anything.
Yeah I removed it for now; it's being replaced by something better