test lang=en in cookies

This commit is contained in:
2024-09-20 20:53:40 +02:00
parent b975f99108
commit d558f8c403
7 changed files with 54 additions and 40 deletions
+6
View File
@@ -73,6 +73,12 @@ class Sender:
if contact.store is not None and contact.store != "random":
_selected_store = contact.store
self.logger.info("store is:{}".format(_selected_store))
if "lang=" not in self.cookie_str:
self.cookie_str = self.cookie_str + "; lang=en"
else:
self.cookie_str.replace("lang=fr", "lang=en")
self.logger.info("cookie_str is:{}".format(self.cookie_str))
headers = {'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': js_data.ua,
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',