[vipergirls] add 'domain' option (#4166)

This commit is contained in:
Mike Fährmann
2024-03-18 16:53:02 +01:00
parent ae116812cc
commit e1c51c0dfb
2 changed files with 17 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ class VipergirlsExtractor(Extractor):
cookies_domain = ".vipergirls.to"
cookies_names = ("vg_userid", "vg_password")
def _init(self):
domain = self.config("domain")
if domain:
self.root = text.ensure_http_scheme(domain)
def items(self):
self.login()
posts = self.posts()