[vipergirls] add 'domain' option (#4166)
This commit is contained in:
@@ -3954,6 +3954,18 @@ Description
|
|||||||
``"raw"``, ``"full"``, ``"regular"``, ``"small"``, and ``"thumb"``.
|
``"raw"``, ``"full"``, ``"regular"``, ``"small"``, and ``"thumb"``.
|
||||||
|
|
||||||
|
|
||||||
|
extractor.vipergirls.domain
|
||||||
|
---------------------------
|
||||||
|
Type
|
||||||
|
``string``
|
||||||
|
Default
|
||||||
|
``"vipergirls.to"``
|
||||||
|
Description
|
||||||
|
Specifies the domain used by ``vipergirls`` extractors.
|
||||||
|
|
||||||
|
For example ``"viper.click"`` if the main domain is blocked or to bypass Cloudflare,
|
||||||
|
|
||||||
|
|
||||||
extractor.vipergirls.like
|
extractor.vipergirls.like
|
||||||
-------------------------
|
-------------------------
|
||||||
Type
|
Type
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ class VipergirlsExtractor(Extractor):
|
|||||||
cookies_domain = ".vipergirls.to"
|
cookies_domain = ".vipergirls.to"
|
||||||
cookies_names = ("vg_userid", "vg_password")
|
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):
|
def items(self):
|
||||||
self.login()
|
self.login()
|
||||||
posts = self.posts()
|
posts = self.posts()
|
||||||
|
|||||||
Reference in New Issue
Block a user