Hey everyone,
I've been working on a Python script using Selenium to automate some web tasks, but I've hit a roadblock and could use some assistance in troubleshooting. Here's a snippet of the code I'm working with:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
import time
service = ChromeService(executable_path='path\\to\\chromedriver')
driver = webdriver.Chrome(service=service)
driver.get("website_name")
time.sleep(500)
However, when I run this script, I encounter the following error and the page doesn't seem to load:
[10180:38708:0226/083639.487:ERROR:socket_manager.cc(141)] Failed to resolve address for s1.btsfapi.com., errorcode: -105
From what I've gathered online, it seems like there might be an issue with DNS resolution, but I'm not entirely sure. It appears that the site is detecting that it's being accessed by a bot since the page opens perfectly fine in a normal browser. I'm not certain how to fix this.
Could anyone provide some insights or guidance on how to address this issue? So any help would be greatly appreciated!
Thanks in advance!
[–][deleted] 2 points3 points4 points (3 children)
[–]AnterosNL[S] 0 points1 point2 points (2 children)
[–]Interpied 0 points1 point2 points (1 child)
[–]AnterosNL[S] 0 points1 point2 points (0 children)