Spaces:
Sleeping
Sleeping
| import random | |
| HEADERS = [ | |
| { | |
| 'Sec-Ch-Ua': '"Chromium";v="122", "Not(A:Brand";v="24", "Microsoft Edge";v="122"', | |
| 'Sec-Ch-Ua-Mobile': '?0', | |
| 'Sec-Ch-Ua-Platform': '"Windows"', | |
| 'Upgrade-Insecure-Requests': '1' , | |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0', | |
| }, | |
| { | |
| 'Sec-Ch-Ua': '"Not_A Brand";v="8", "Chromium";v="120", "Opera GX";v="106"', | |
| 'Sec-Ch-Ua-Mobile': '?0', | |
| 'Sec-Ch-Ua-Platform': '"Windows"', | |
| 'Upgrade-Insecure-Requests': '1' , | |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 OPR/106.0.0.0', | |
| } | |
| ] | |
| #----------------- Headers data ----------------------------------- | |
| def get_headers(): | |
| # 0: Brave broser headers | |
| # 1: Firefox browser headers | |
| # 2: Google Chrome browser headers | |
| return HEADERS[random.randint(0, 1)] |