import requests #ОБЯЗАТЕЛЬНО ВЕДИ В ТЕРМИНАЛ КОД pip install requests(для юзера) import random # Список прокси-серверов (замените на свои) proxies_list = [ '116.169.54.253:8080', '47.88.31.196:8080', '5.59.141.28:60606', '51.75.126.150:12907', '105.214.114.69:5678', '188.165.192.99:3451', '133.130.107.58:80', '67.201.33.10:25283', '20.24.43.214:8123', '18.221.149.130:80', '116.169.54.253:8080', '160.248.190.253:3128', '160.248.191.3:3128', '138.186.222.129:5678', '102.132.42.227:8080', '80.30.42.93:80', '51.75.126.150:20906', '51.89.21.99:64251', '160.248.190.253:3128', '160.248.191.3:3128', '138.186.222.129:5678', '102.132.42.227:8080', '80.30.42.93:80', '51.75.126.150:20906', '51.89.21.99:64251', '51.75.126.150:12907', '105.214.114.69:5678', '188.165.192.99:3451', '133.130.107.58:80', '67.201.33.10:25283', '20.24.43.214:8123', '18.221.149.130:80', '116.169.54.253:8080', '51.75.126.150:27038', '184.170.249.65:4145', '160.248.80.91:137', '182.155.254.159:80', '142.54.231.38:4145', '198.8.84.3:4145', '134.209.67.109:26000', '142.54.228.193:4145', '212.127.93.44:8081', '178.54.21.203:8081', '163.53.75.202:8080' '31.220.78.244:80', '14.45.204.215:80', # Добавьте больше прокси ] def visit_site(url): # Выбираем случайный прокси из списка proxy = random.choice(proxies_list) print(f'Используем айпи: {proxy}') try: response = requests.get(url, proxies={'https': proxy, 'https': proxy}, timeout=10) print(f'Статус код: {response.status_code}') return response.text except requests.exceptions.RequestException as e: print(f'Ошибка: {e}') return None if __name__ == '__main__': target_https = 'https://chatdljadetey.chat-off.com/' # Количество запросов