try cookies

This commit is contained in:
2025-12-07 18:57:34 +01:00
parent 7094801549
commit df1a60034c
2 changed files with 24 additions and 2 deletions

View File

@@ -22,6 +22,14 @@ first_run_dict = {name: True for name in PRODUCT_NAMES}
def check_rtx_50_founders():
global last_sku_dict, global_stock_status_dict, first_run_dict
# First get Akamai cookie by visiting main site
try:
logging.info("Getting Akamai protection cookie...")
session.get("https://marketplace.nvidia.com/fr-fr/consumer/graphics-cards/", timeout=10)
time.sleep(1) # Let the session establish
except Exception as e:
logging.warning(f"Failed to get initial cookie: {e}")
# Fetching nvidia API data
try:
sku_url = API_URL_SKU