try to add model in the request header

This commit is contained in:
2024-09-27 22:48:13 +02:00
parent 00db63d09b
commit c5cf7be54b
4 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -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',