강의

멘토링

커뮤니티

Inflearn Community Q&A

e2logic4u5114's profile image
e2logic4u5114

asked

Python Selenium Advanced (python selenium - crawling, crawler)

5. Avoiding Bot Detection (Advanced) – If you don’t know this, you will definitely be caught by the platform.

undetected_chromedriver 사용시 widow-size 가 적용이 안됩니다.

Written on

·

1.6K

0

 5. bot detection 피하기 고급편에 나온 소스를 그대로 적용하였습니다.

다른 부분은 문제가 없고, 에러 또한 없습니다.

그런데 window-size 관련된 argument 값이 적용이 안됩니다.

항상 큰 사이즈의 윈도우만 오픈되고 있습니다.

python 버젼은 3.11.0 입니다.

버젼을 다운그레이드 해야 할까요?

 

 

웹-크롤링seleniumcdp

Answer 2

1

기존에 f스트링으로 argument로 넘겨준 곳은 주석처리 하고 아래와 같이 코드 추가하시면 동작 할겁니다.

driver.set_window_size(width, height)

 

0

lread90님의 프로필 이미지
lread90
Instructor

undetected chromedriver 버전 dependent error입니다

[솔루션 1]

driver.set_window_size(width, height)

 

[솔루션 2]

pip install undetected_chromedriver==3.4.4


3.4.4 버전으로 설치하시거나 버전 다운그레이드로 해결이 가능합니다


참고 링크 : https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1100

e2logic4u5114's profile image
e2logic4u5114

asked

Ask a question