
Мой селен/автономный Chrome в докере:
[img]https://i .sstatic.net/lzSpO.png[/img]
Мой код Python:
Код: Выделить всё
def demo():
options = Options()
options.add_argument('--headless')
options.add_argument('--disable-gpu')
driver = webdriver.Remote(
command_executor="http://localhost:4444/wd/hub",
desired_capabilities=DesiredCapabilities.CHROME
)
driver.get("https://www.google.com/")
print(driver.current_url)
driver.quit()
Подробнее здесь: https://stackoverflow.com/questions/714 ... sponse-cod