From 58cefbd03a0fdc34fdb9994d136387364e16f27a Mon Sep 17 00:00:00 2001 From: Ramona T Date: Thu, 4 Dec 2025 16:36:53 -0500 Subject: [PATCH] update deprecated tldextract property registered_domain to top_domain_under_public_suffix --- requestium/requestium_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requestium/requestium_mixin.py b/requestium/requestium_mixin.py index c627496a..b0a8193e 100644 --- a/requestium/requestium_mixin.py +++ b/requestium/requestium_mixin.py @@ -85,7 +85,7 @@ def ensure_add_cookie(self, cookie: dict[str, Any], override_domain: str | None # If we fail adding the cookie, retry with a more permissive domain if not cookie_added: - cookie["domain"] = tldextract.extract(cookie["domain"]).registered_domain + cookie["domain"] = tldextract.extract(cookie["domain"]).top_domain_under_public_suffix cookie_added = self.try_add_cookie(cookie) if not cookie_added: msg = f"Couldn't add the following cookie to the webdriver: {cookie}"