Суть в том, что сайт просто не грузит, как и другие. Держу пари, проблема в коде. Все прокси русские 100%
Вот код
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
import random
import os
import asyncio
from selenium import webdriver as wb
from msedge.selenium_tools import Edge, EdgeOptions
from selenium.webdriver.common.proxy import Proxy, ProxyType
url_vk = "https://vk.com/"
login = "number"
edge_options = EdgeOptions()
edge_options.use_chromium = True
edge_options.add_argument("--start-maximized"); #--disable-dev-shm-usage --no-sandbox
edge_options.add_argument("--disable-dev-shm-usage")#--remote-debugging-port=<port>
edge_options.add_argument("--no-sandbox")
edge_options.add_argument("--remote-debugging-port=9222")
def vkbrut(login, head_bool):
if head_bool:
edge_options.add_argument("headless")
edge_options.add_argument("disable-gpu")
with open("proxy.txt", "r") as f:
proxy = f.readlines()
proxy = proxy[random.randint(0, int(len(proxy))-1)]
print(proxy)
proxy_one = proxy
proxy = Proxy()
proxy.proxy_type = ProxyType.MANUAL
proxy.http_proxy = proxy_one
proxy.ssl_proxy = proxy_one
capabilities = wb.DesiredCapabilities.EDGE.copy()
proxy.add_to_capabilities(capabilities)
edge_options.add_argument('--proxy-server=%s' % proxy_one)
driver = Edge(options=edge_options, executable_path = os.getcwd() + "\\msedgedriver.exe", desired_capabilities=capabilities)
driver.get(url_vk)
while True:
continue
vkbrut(login, False)