try to add model in the request header
This commit is contained in:
@@ -111,7 +111,8 @@ class CaptchaResultGetter:
|
||||
print("raw ch data is " + _raw_data)
|
||||
return _raw_data
|
||||
|
||||
def get_valid_ch_cookie(self, proxy_to_use, js_data: JsDataPojo, old_valid_cookie: str = None) -> Union[str, None]:
|
||||
def get_valid_ch_cookie(self, proxy_to_use, js_data: JsDataPojo, old_valid_cookie: str = None,
|
||||
referrer: str = None) -> Union[str, None]:
|
||||
# extract datadome cookie
|
||||
# get new cookie
|
||||
_cookies_to_use = get_datadome_cookies(old_valid_cookie)
|
||||
@@ -120,6 +121,8 @@ class CaptchaResultGetter:
|
||||
_origin = "https://rendezvousparis.hermes.com/"
|
||||
# _origin = "https://www.hermes.com"
|
||||
_referer = "https://rendezvousparis.hermes.com/"
|
||||
if referrer is not None:
|
||||
_referer = referrer
|
||||
# _referer = "https://www.hermes.com"
|
||||
|
||||
headers = {'content-Type': 'application/x-www-form-urlencoded',
|
||||
|
||||
Reference in New Issue
Block a user