1. 셀레니움 설치
터미널에서 pip3 install selenium 명령어를 이용해 셀레니움을 설치합니다.pip3 install selenium | cs |
2. 크로미움 설치
제 버전에서는 chromium이 설치가 되어있더군요dpkg -l | grep chromium 입력하시면 설치된 패키지가 나옵니다.
dpkg -l | grep chromium | cs |
셀레니움을 이용하려면 chromium-browser, chromium-chromedriver, 코덱이 필요한 것 같습니다. 저의 경우 크롬드라이버 빼고 모두 깔려있어서 크롬 드라이버만 설치했습니다. 설치되어있지 않는 상태를 캡쳐하지 못했습니다. 삽질하느라 캡쳐할 시간이 없었습니다:(
위의 사진은 크롬드라이버를 설치하고 셀레니움이 실행되어서 캡쳐한 패키지 목록입니다.
여기에 없는 패키지는 wget 명령어를 통해 다운받습니다.
wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-chromedriver_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb | cs |
다운로드 후 패키지를 설치해줍니다.
sudo dpkg -i chromium-chromedriver_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb | cs |
3. 간단코딩으로 테스트 해봅시다.
from selenium import webdriver driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver') driver.get("http://www.google.com") | cs |
1 댓글
Hello, This is Future Dimension,
답글삭제we provide sposync.com to access to your device with
streaming and control using webRTC technology Free.
Only one required app is a web browser - Chromium and
provided python websocket server on RPI.
(tested for Buster and Chromium 72)
You can define the control command and extra security key if needed.
With these inputs, only you can access to your device remotely.
Please contact misdiva1bil@gmail.com
Thanks,
David FDI