Google Colab Selenium
1.0.0

기본 사용 :
%pip install google-colab-selenium검출되지 않은 chromedriver 버전 사용 :
%pip install google-colab-selenium[undetected] import google_colab_selenium as gs
driver = gs . Chrome ()
# Your code to interact with the driver here
# ...
driver . quit () import google_colab_selenium as gs
driver = gs . UndetectedChrome ()
# Your code to interact with the driver here
# ...
driver . quit () google-colab-selenium 패키지는 Google Colab 환경에 최적화 된 기본 옵션 세트로 사전 구성됩니다. 이러한 기본값에는 다음이 포함됩니다.
--headless : 크롬을 헤드리스 모드 (GUI없이)로 실행합니다.--no-sandbox : Colab 환경에서 필요한 Chrome 샌드 박스 기능을 비활성화합니다.--disable-dev-shm-usage : docker 컨테이너에서 공유 메모리가 제한된 문제를 방지합니다.--lang=en : 언어를 영어로 설정합니다.귀하의 요구에 따라 이러한 옵션을 확장하거나 무시할 수 있습니다.
from selenium . webdriver . chrome . options import Options
import google_colab_selenium as gs
custom_options = Options ()
# Add your custom options here
driver = gs . Chrome ( options = custom_options )기부금을 환영합니다! 제안이나 문제가 있으면 문제 추적기를 사용하여 알려주십시오.