How can I avoid that the website thinks that I'm a robot?
25 views
Skip to first unread message
Kenneth Vandbæk
unread,
Jun 14, 2024, 8:34:37 AM (12 days ago) Jun 14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi
I'm trying to find info from a site, but I'm facing that the site thinks that I'm a robot, which I am of course, but because of the error the page is not fully loaded.
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager
import time
options = Options() #options.add_argument('--headless') options.add_argument('--disable-gpu') options.add_argument('user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36') options.add_argument("--start-maximized") options.add_experimental_option("excludeSwitches",["enable-automation"])
# Set up the WebDriver driver = webdriver.Chrome(options=options, service=Service(ChromeDriverManager().install()))