from loguru import logger
import json
from py_spider.utils.secure_db_client import get_remote_engine

#  uk  de 的站点 没测过    拍照接口的 application  username uk站点的为amzn-mbl-cscan-ais  url不变 为https://match-visualsearch.amazon.com/vsearch/2.0
site_name_secret_dict = {
    "us": {'application':'amzn-mbl-cscan-us','username':'amzn-mbl-cscan-us','secret':'5b6874d3a20417591bd5464a25a37bc6','snap_url':'https://match-visualsearch.amazon.com'},
    "uk": {'application':'amzn-mbl-cscan-uk','username':'amzn-mbl-cscan-uk','secret':'c1a79f745bbe6a8824ce3178c8b549ad','snap_url':'https://match-visualsearch-uk.amazon.com'},
    "de": {'application':'amzn-mbl-cscan-de','username':'amzn-mbl-cscan-de','secret':'9e6d6d6c2c823012c493885a95cc5bf2','snap_url':'https://match-visualsearch-de.amazon.com'},
}
us_devices_list =  [
    {"clientDevice":"iOS - iPhone 16 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 16","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 15 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 15 Plus","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 14 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 14","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 13 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 13","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 12 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone 12","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone SE (2022)","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone SE 3rd Gen","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"Android - Pixel 9 Pro","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel 9","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel 8 Pro","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel 8","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel 7 Pro","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Pixel 7a","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Pixel 6 Pro","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Pixel 6a","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Pixel 5a","deviceManufacturer":"Google","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Pixel 5","deviceManufacturer":"Google","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Galaxy S25 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Galaxy S25","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Galaxy S24 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Galaxy S24","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Galaxy S23 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy S23","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy A55","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy A54","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy Z Fold5","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy Z Flip5","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy A34","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy A14","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy S22 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy A53","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy S21 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Galaxy A71","deviceManufacturer":"Samsung","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Moto Edge 60","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Moto Edge 50 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Moto G Power (2024)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto G Stylus 5G (2023)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto Razr 40 Ultra","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto Edge 30 Fusion","deviceManufacturer":"Motorola","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Moto G Pure (2023)","deviceManufacturer":"Motorola","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Moto One 5G Ace","deviceManufacturer":"Motorola","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus 12","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 11","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus 10 Pro","deviceManufacturer":"OnePlus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus 9 Pro","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus Nord N30","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord 3","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Ace 2","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord CE 3","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Xiaomi 14 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 14","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 13 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 13 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 12 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi K70","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Redmi K60","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus ROG Phone 8","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus Zenfone 11","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus ROG Phone 7","deviceManufacturer":"Asus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus Zenfone 10","deviceManufacturer":"Asus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 40 SE","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL Stylus 5G","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 30 V 5G","deviceManufacturer":"TCL","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Nokia X30 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia G42 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia G22","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Vivo X100 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Vivo X100","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Vivo V30 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Find X7 Ultra","deviceManufacturer":"Oppo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Oppo Find X6 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Reno 11 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme GT5 Pro","deviceManufacturer":"Realme","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Realme 11 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme 10 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"12"},
    {"clientDevice":"iOS - iPhone 16 Plus","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 15 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 15","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 14 Plus","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 14 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 13 Mini","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 13 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 12 Mini","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone 12 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel Fold","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel 8a","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Pixel 7","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Pixel 6","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Pixel 4a (5G)","deviceManufacturer":"Google","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Galaxy S25 Plus","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Galaxy S24 Plus","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Galaxy S23 Plus","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy A74 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Galaxy Z Fold4","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy Z Flip4","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy A33 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy A23 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy S22","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Galaxy S21","deviceManufacturer":"Samsung","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Moto Edge 40 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto G Stylus (2024)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto Razr 40","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto G54 5G","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto Edge 30 Ultra","deviceManufacturer":"Motorola","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Moto G34 5G","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Moto E32","deviceManufacturer":"Motorola","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus 12R","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 11R","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus 9","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus Nord N200 5G","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus Nord 2T","deviceManufacturer":"OnePlus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus Ace","deviceManufacturer":"OnePlus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Xiaomi 13 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Xiaomi 12S Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 13","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 12","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi K50 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Redmi 12C","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus ROG Phone 6","deviceManufacturer":"Asus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Asus Zenfone 9","deviceManufacturer":"Asus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - TCL 405","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 30 SE","deviceManufacturer":"TCL","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Nokia X20 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Nokia G50 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Vivo V29 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo S18 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Find X5 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Oppo Reno 10 Pro+","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme GT Neo5","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme 9 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"12"}
]

uk_devices_list = [
    {"clientDevice":"iOS - iPhone 16","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 16 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 15","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 15 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 14 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 14 Plus","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 13 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 13 Mini","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone SE (2022)","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPad Air (2024)","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPad Pro 11-inch (2024)","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPad 10th Gen","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"Android - Samsung Galaxy S25 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S25","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S24 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S24","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy A56","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A55","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy Z Fold5","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy Z Flip5","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 10 Pro XL","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 10 Pro","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 9 Pro","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 9","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 8 Pro","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 8a","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord N100","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus 12","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 11","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord 2 5G","deviceManufacturer":"OnePlus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus 8 Pro","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus 7t","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Nokia 2.1","deviceManufacturer":"Nokia","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Nokia X30 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia G42 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo A54s 2021","deviceManufacturer":"Oppo","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Oppo Find X7 Ultra","deviceManufacturer":"Oppo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Oppo Find X6 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Reno 11 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo X100 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Vivo V30 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo S18 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei P20","deviceManufacturer":"Huawei","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Huawei Mate 20 Lite","deviceManufacturer":"Huawei","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Huawei Y6ii Compact","deviceManufacturer":"Huawei","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Huawei Ascend G510","deviceManufacturer":"Huawei","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Motorola Razr 5G 2nd Gen","deviceManufacturer":"Motorola","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Motorola Edge 60","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Motorola G Power (2024)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vodafone V1230","deviceManufacturer":"Vodafone","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Vodafone V1210","deviceManufacturer":"Vodafone","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Vodafone Smart III","deviceManufacturer":"Vodafone","clientDeviceVersion":"10"},
    {"clientDevice":"Android - HTC One Mini LTE 601n","deviceManufacturer":"HTC","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Samsung Galaxy S21 Ultra 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Samsung Galaxy S9 Plus","deviceManufacturer":"Samsung","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Samsung Galaxy Note 8","deviceManufacturer":"Samsung","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Samsung Galaxy Express 2","deviceManufacturer":"Samsung","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Samsung Galaxy S5","deviceManufacturer":"Samsung","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Realme GT5 Pro","deviceManufacturer":"Realme","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Realme 11 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme GT Neo5","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"iOS - iPhone XS","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone 11 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone 12 5G","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone 12 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPad Pro 11-inch 2021","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPad Pro 11-inch 2020","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPad Air CDMA A1475","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 3a","deviceManufacturer":"Google","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Google Pixel 4a (5G)","deviceManufacturer":"Google","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Google Pixel 5a","deviceManufacturer":"Google","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus Nord N20","deviceManufacturer":"OnePlus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus Nord N30","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A54","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A34","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A14","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy S22 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Samsung Galaxy S22","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Samsung Galaxy A53 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Samsung Galaxy A33 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Xiaomi 14 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 14","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 13 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 13 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi K70","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Redmi K60","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus ROG Phone 8","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus ROG Phone 7","deviceManufacturer":"Asus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus Zenfone 11","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus Zenfone 10","deviceManufacturer":"Asus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 40 SE","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL Stylus 5G","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 30 V 5G","deviceManufacturer":"TCL","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Blackberry Key2","deviceManufacturer":"Blackberry","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Blackberry Key2 Red Edition","deviceManufacturer":"Blackberry","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Blackberry Keyone","deviceManufacturer":"Blackberry","clientDeviceVersion":"10"},
    {"clientDevice":"Android - Motorola Razr 40 Ultra","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto G54 5G","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto Edge 40 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"iOS - iPhone 16 Plus","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 15 Plus","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 14 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 13 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 12 Mini","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone SE 3rd Gen","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPad Pro 5G 11-inch 2021","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPad Air (2022)","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"Android - Samsung Galaxy S23 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy S23","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy Z Fold4","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Samsung Galaxy Z Flip4","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Google Pixel 7 Pro","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 7a","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 6 Pro","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Google Pixel 6a","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus 12R","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 11R","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord CE 3","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Reno 10 Pro+","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Find X5 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Vivo V29 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme 9 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Xiaomi 13 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 12","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi K50 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Asus Zenfone 9","deviceManufacturer":"Asus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Asus ROG Phone 6","deviceManufacturer":"Asus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - TCL 405","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 30 SE","deviceManufacturer":"TCL","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Nokia X20 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Nokia G50 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Motorola Moto G Stylus 5G (2023)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto One 5G Ace","deviceManufacturer":"Motorola","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Vodafone Smart V10","deviceManufacturer":"Vodafone","clientDeviceVersion":"11"},
    {"clientDevice":"Android - HTC U23 Pro","deviceManufacturer":"HTC","clientDeviceVersion":"13"},
    {"clientDevice":"Android - HTC Wildfire E5 Plus","deviceManufacturer":"HTC","clientDeviceVersion":"12"},
    {"clientDevice":"iOS - iPhone 17 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"19"},
    {"clientDevice":"iOS - iPhone 17","deviceManufacturer":"Apple","clientDeviceVersion":"19"},
    {"clientDevice":"iOS - iPad Pro 12.9-inch (2024)","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPad Mini 6th Gen","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"Android - Samsung Galaxy S26 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy A57 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 11 Pro","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 13","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Oppo Find X8 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Vivo X110 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 15 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Realme GT6 Pro","deviceManufacturer":"Realme","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus ROG Phone 9","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Motorola Edge 70 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Nokia X40 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"14"},
    {"clientDevice":"Android - TCL 50 SE","deviceManufacturer":"TCL","clientDeviceVersion":"14"}
]

de_devices_list = [
    {"clientDevice":"iOS - iPhone 16 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 16","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPhone 15 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 15","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPhone 14 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 14","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone 13 Pro Max","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 13","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone 12 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone 12","deviceManufacturer":"Apple","clientDeviceVersion":"14"},
    {"clientDevice":"iOS - iPhone SE (2022)","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPhone SE 3rd Gen","deviceManufacturer":"Apple","clientDeviceVersion":"16"},
    {"clientDevice":"iOS - iPhone Air","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"Android - Samsung Galaxy S26 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S26 Pro","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S26 FE","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S25 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S25","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S24 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy S24 FE","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy S23 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A57 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy A56","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A55","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy A54","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy Z Fold5","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy Z Flip5","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Samsung Galaxy Tab S12 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy Tab S12","deviceManufacturer":"Samsung","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Samsung Galaxy Tab S11 Lite","deviceManufacturer":"Samsung","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 9 Pro Fold","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 9 Pro","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 9","deviceManufacturer":"Google","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Google Pixel 8 Pro","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 8","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 7 Pro","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Google Pixel 7","deviceManufacturer":"Google","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo X300 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"16"},
    {"clientDevice":"Android - Vivo X300","deviceManufacturer":"Vivo","clientDeviceVersion":"16"},
    {"clientDevice":"Android - Vivo X200","deviceManufacturer":"Vivo","clientDeviceVersion":"15"},
    {"clientDevice":"Android - Vivo V50 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"15"},
    {"clientDevice":"Android - Vivo V50","deviceManufacturer":"Vivo","clientDeviceVersion":"15"},
    {"clientDevice":"Android - Vivo Y500","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Vivo Y37 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Vivo IQOO 12","deviceManufacturer":"Vivo","clientDeviceVersion":"15"},
    {"clientDevice":"Android - Xiaomi 15 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 15","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 14 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 14T Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 14","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi 13 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 14 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Redmi Note 13 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi Note 12 Pro","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi 14R","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Redmi K70 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Redmi K60","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Pura 70 Ultra","deviceManufacturer":"Huawei","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Huawei Pura 70 Pro+","deviceManufacturer":"Huawei","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Huawei Pura 70 Pro","deviceManufacturer":"Huawei","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Huawei Pura 70","deviceManufacturer":"Huawei","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Huawei Nova 12 Ultra","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Nova 12 Pro","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Nova 12","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Nova 12 Lite","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Nova Flip","deviceManufacturer":"Huawei","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Huawei Mate XT Ultimate","deviceManufacturer":"Huawei","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Huawei Enjoy 70","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Find X8 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Oppo Find X7 Ultra","deviceManufacturer":"Oppo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Oppo Find X6 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Reno 11 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo Reno 10 Pro+","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo A6 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo A6 GT 5G","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo A6i 5G","deviceManufacturer":"Oppo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo F31","deviceManufacturer":"Oppo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 13","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 12","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 11","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord N30","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord 3","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - OnePlus Nord CE 3","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme 13 4G","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme 11 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme GT6 Pro","deviceManufacturer":"Realme","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Realme GT5 Pro","deviceManufacturer":"Realme","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Realme GT Neo5","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme Narzo N61","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme V60","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Edge 70 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Motorola Edge 60 Neo","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Motorola Edge 60","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Motorola Edge 50 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Motorola Moto G06 Power","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto G Power (2024)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto G Stylus 5G (2023)","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Honor 500 Pro","deviceManufacturer":"Honor","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Honor 500","deviceManufacturer":"Honor","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus ROG Phone 9","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus ROG Phone 8","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus ROG Phone 7","deviceManufacturer":"Asus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus Zenfone 11","deviceManufacturer":"Asus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Asus Zenfone 10","deviceManufacturer":"Asus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - ZTE Nubia Air","deviceManufacturer":"ZTE","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Ulefone Armor 26 Ultra","deviceManufacturer":"Ulefone","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Ulefone Armor 24","deviceManufacturer":"Ulefone","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Ulefone Power Armor 18 Ultra","deviceManufacturer":"Ulefone","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Ulefone Power Armor 18 T Ultra","deviceManufacturer":"Ulefone","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Ulefone Note 17 Pro","deviceManufacturer":"Ulefone","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 50 SE","deviceManufacturer":"TCL","clientDeviceVersion":"14"},
    {"clientDevice":"Android - TCL 40 SE","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL Stylus 5G","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - TCL 30 V 5G","deviceManufacturer":"TCL","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Tecno Pova Slim","deviceManufacturer":"Tecno","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Tecno Megapad Pro","deviceManufacturer":"Tecno","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia G42 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia X30 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia X40 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Nokia G50 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Vodafone Smart V10","deviceManufacturer":"Vodafone","clientDeviceVersion":"13"},
    {"clientDevice":"iOS - iPad Pro 12.9-inch (2024)","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPad Pro 11-inch (2024)","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPad Air (2024)","deviceManufacturer":"Apple","clientDeviceVersion":"18"},
    {"clientDevice":"iOS - iPad Mini 6th Gen","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"iOS - iPad 10th Gen","deviceManufacturer":"Apple","clientDeviceVersion":"17"},
    {"clientDevice":"Android - Samsung Galaxy S22 Ultra","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Samsung Galaxy A53 5G","deviceManufacturer":"Samsung","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Google Pixel 6 Pro","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Google Pixel 6","deviceManufacturer":"Google","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Vivo V30 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo S18 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Xiaomi 13 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Redmi K50 Ultra","deviceManufacturer":"Xiaomi","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Oppo Find X5 Pro","deviceManufacturer":"Oppo","clientDeviceVersion":"12"},
    {"clientDevice":"Android - OnePlus 12R","deviceManufacturer":"OnePlus","clientDeviceVersion":"14"},
    {"clientDevice":"Android - OnePlus 11R","deviceManufacturer":"OnePlus","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Realme 9 Pro+","deviceManufacturer":"Realme","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Motorola Moto Edge 40 Pro","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto G54 5G","deviceManufacturer":"Motorola","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Nokia X20 5G","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - TCL 405","deviceManufacturer":"TCL","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Asus Zenfone 9","deviceManufacturer":"Asus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Asus ROG Phone 6","deviceManufacturer":"Asus","clientDeviceVersion":"12"},
    {"clientDevice":"Android - Huawei Nova 12i","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Nova 12s","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Huawei Nova 12 SE","deviceManufacturer":"Huawei","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo V29 Pro","deviceManufacturer":"Vivo","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Vivo V40 Lite","deviceManufacturer":"Vivo","clientDeviceVersion":"14"},
    {"clientDevice":"Android - Xiaomi Redmi 12C","deviceManufacturer":"Xiaomi","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Motorola Moto One 5G Ace","deviceManufacturer":"Motorola","clientDeviceVersion":"11"},
    {"clientDevice":"Android - OnePlus Nord N200 5G","deviceManufacturer":"OnePlus","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Realme GT Neo5 SE","deviceManufacturer":"Realme","clientDeviceVersion":"13"},
    {"clientDevice":"Android - Oppo A54s 2021","deviceManufacturer":"Oppo","clientDeviceVersion":"11"},
    {"clientDevice":"Android - Nokia G22","deviceManufacturer":"Nokia","clientDeviceVersion":"12"},
    {"clientDevice":"Android - TCL 30 SE","deviceManufacturer":"TCL","clientDeviceVersion":"12"},
    {"clientDevice":"iOS - iPhone 17 Pro","deviceManufacturer":"Apple","clientDeviceVersion":"19"},
    {"clientDevice":"iOS - iPhone 17","deviceManufacturer":"Apple","clientDeviceVersion":"19"},
    {"clientDevice":"iOS - iPad Pro 11-inch 2021","deviceManufacturer":"Apple","clientDeviceVersion":"15"},
    {"clientDevice":"iOS - iPad Air (2022)","deviceManufacturer":"Apple","clientDeviceVersion":"16"}
]


us_cookie_dict ={"i18n-prefs": "USD", "lc-  main": "en_US", "session-id": "137-6850115-5627367", "session-id-time": "2082787201l", "session-token": "NDR0kD9QBkk81plbn2yEFeEJ205I0LEzv9G4Q3nG90PVEmpZEtEiL6Ixj3alIu5KBvaiePi9IOHhzSh48qBNQH2yroklDf1+rDTtJ8HNzcfae0ZEL3/szlwFWXRsxH7UwfHip9R66v9ZoO5ni9mrz+4J6QgjTmrzCW7uVjTMthdesVgOk2SVmxyfoLQnmYuScp17v+ayrztH3VFIg/VyhzNBlVbkZDIHg2WB3F+U0JHkiQfiZB1q2uCMWOEIOwRkCGhaRrWHbBgpQtvHnf+Iw2KxVkl2gv1jZga2iNQUhO6cIr2Py5V7evAyuXXhjRaBzIl/STRh58Jr9ctbhdBXnTQsbThexXLn", "skin": "noskin", "ubid-main": "133-5836273-3821350"}
uk_cookie_dict ={"i18n-prefs": "HKD", "lc-acbuk": "en_GB", "session-id": "521-9387816-0582061", "session-id-time": "2082787201l", "session-token": "\"ANvQ1SZ9VE6Y9cGcEdwhYcEpI1Jql7bOXZ7Q+qdBbb41IuuIFXvUzDSoaXOzPlcUTa3CIMoLIIzD2QOAWnN2h1E/c/iXEzpM8qd4LqR9otFV6PQecFkZKnC/i5v3QIguYgLt3KB9halOcaKi+KXcpG1b5jjYSicsMknbJMQVgfkiqMDXOLcxIns2cHs1xpXgf/DrjOHNpIB6Q24VKaqLTuKbWd8biHv86NGyoBNIs1kkjJxdwZhvWtQC/rHqoiz0e853W2lkrUrdr6Ko3dSIYojEBEgVuglCENJWLmkQzqEMxcIzNgcrpf4ZSlRHhMpmi2D14A6rwrwdo/JMozJSol+Wx3dL7j/AEGiXa1IWwrA=\"", "ubid-acbuk": "259-9451176-7460703"}
de_cookie_dict ={"i18n-prefs": "HKD", "lc-acbde": "de_DE", "session-id": "258-7262769-1488647", "session-id-time": "2082787201l", "session-token": "RxPtESM/cUQ4JAxsgMz8crm9EMbFhHLK4vPgZzTj2w23v5yWkzjXZsVVsErU5Oi8qzT3Le8nxU1zxeDEWuAg2IL+5fb2VwhE9UOQpLMmnOBWaukpW0CKFMOTvJU6Fu7+IZhWpJWt+ypu5b0KEYVi7CyTsHKh38q8N2m7tGBwb94NyT4tLHyE69XovznI5HV7y19J0aJrDyEYBfk00m6/SwxxOhRbkOXWVIagnGK4N1uQ27n9827rd7o1TpHQc8sWnn1bDAvYbCtGOaUYUHJ8HxnZPsTjKZ2b8OgzIKE9nlvpoAAQOArarZlZxneJTfUY++ucym9Te+RUvPp6SrhpPJyP7W425mA9", "ubid-acbde": "257-6077242-9988057"}

def get_cookies(site_name: str) -> dict[str, str]:
    '''
    从站点对应的数据库中读取Cookie
    :param site_name: 站点名称（us/uk/de）
    :return: Cookie字典，失败则返回None
    '''
    try:
        # 2. 验证站点是否有对应的数据库配置
        if site_name not in site_name_secret_dict:
            logger.error(f"输入站点 {site_name} 的不存在 ")
            return None
        #  连接对应数据库
        engine = get_remote_engine(
            site_name=site_name,  # -> database "selection"
            db_type="mysql",  # -> 服务端 alias "mysql"
        )
        if not engine:
            logger.error('连接数据库出错')
            return None
        sql = f"select * from {site_name}_cookies order by  updated_time desc limit 1;"
        df_cookies = engine.read_sql(sql)
        if  df_cookies.empty:
            logger.error("错误：未查询到 cookie 数据")
            return None
        cookies_dict  = json.loads(df_cookies.iloc[0]['cookies'])
        if not isinstance(cookies_dict, dict):
            logger.error("转换结果不是字典")
            return  None

        return  cookies_dict
    except Exception as e:
        logger.error(f"错误：{str(e)}")
        return None


# logger.success(get_cookies('de'))