반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- or some instances in your deployment group are experiencing problems.
- JavaScript
- kubeflow
- VPN
- Python
- docker
- SQL
- Airflow
- Spring Error
- aws cicd
- codebuild
- Spring
- Jenkins
- codedeploy error
- codedeploy
- redis
- AWS CI/CD 구축하기
- IntelliJ
- codepipeline
- node
- chartjs
- COALESCE
- aws
- PostgreSQL
- bootstrap
- Kafka
- 도커
- Flux
- chart.js
- java bigdecimal
Archives
- Today
- Total
Small Asteroid Blog
[spring] chromedriver 사용 시 Checking your browser before accessing URL 본문
백엔드/Spring
[spring] chromedriver 사용 시 Checking your browser before accessing URL
작은소행성☄️ 2022. 1. 12. 15:22728x90
셀레니움으로 크롤링을 진행하는데 다음과 같은 에러가 나오면서 페이지 이동과 크롤링이 진행되지 않고 있었다.

사이트에 접속하기 전에 나의 브라우저를 확인하는 것이다.
크롤링을 하려면 반복적으로 사이트에 접속해서 사용해야하는데 이 현상은 해당 사이트의 서버를 보호하기 위한 목적으로 나타나는 메세지이기 때문이다.
보통 클라우드플레어 기업의 서버를 이용중인 사이트에서 나타난다.
나의 경우 아래에 보이는 argument 부분을 작성하니깐 되었다.
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-popup-blocking");
options.addArguments("--disable-default-apps");
options.addArguments("--disable-notifications");
options.addArguments("--disable-blink-features=AutomationControlled");
//webdriver 객체생성
ChromeDriver driver = new ChromeDriver(options);
728x90
반응형
'백엔드 > Spring' 카테고리의 다른 글
[Bootstrap5] me-auto 의미 (0) | 2022.03.10 |
---|---|
[spring error] Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError (0) | 2022.03.08 |
Whitelabel Error Page (0) | 2021.12.27 |
[spring error]org.hibernate.service.spi.ServiceException (0) | 2021.12.20 |
[spring] Json 데이터 Object, Array 값 key, value 가져오기 (0) | 2021.12.14 |