Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a website that may still be blocked #1937

Open
yuanzhe-tian opened this issue Jul 5, 2024 · 3 comments
Open

There is a website that may still be blocked #1937

yuanzhe-tian opened this issue Jul 5, 2024 · 3 comments

Comments

@yuanzhe-tian
Copy link

website: https://hackernews.cc/
Using selenium in a normal way requires blocking the fingerprint information of the webdriver.
But using headless mode, requests return 502, I cannot obtain normal data.

using undetected-chromedriver package, i also cannot botain normal data .

@yuanzhe-tian
Copy link
Author

here is my code.

import undetected_chromedriver as uc
options = uc.ChromeOptions()
options.headless = True

options.add_argument("--disable-gpu")
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")

print("prepare driver")
driver = uc.Chrome(options=options)

@LeninZapata
Copy link

What antibot provider are you using?

@yuanzhe-tian
Copy link
Author

What antibot provider are you using?

I don't know what you mean by antibot. Is it because you can't open this website? This website is localted in Chinese.
I just want to open the website and get a cookie. I can access it without setting the features of the webdriver in headless mode. But if I activate headless mode, I will be intercepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants