Separate setup() and module_setup().

This commit is contained in:
erinhmclark
2025-02-10 17:25:15 +00:00
parent c4bb667cec
commit 2c3d1f591f
14 changed files with 17 additions and 26 deletions

View File

@@ -80,6 +80,10 @@ class BaseModule(ABC):
for key, val in config.get(self.name, {}).items():
setattr(self, key, val)
def module_setup(self):
# For any additional setup required by modules, e.g. autehntication
pass
def auth_for_site(self, site: str, extract_cookies=True) -> Mapping[str, Any]:
"""
Returns the authentication information for a given site. This is used to authenticate