编程语言
首页 > 编程语言> > Raspberry pi + python + Selenium + Firefox 最简环境搭建

Raspberry pi + python + Selenium + Firefox 最简环境搭建

作者:互联网

sudo apt install firefox firefox-geckodriver
pip install selenium PyVirtualDisplay xvfbwrapper
from pyvirtualdisplay import Display
from selenium import webdriver

display = Display(visible=0, size=(1024, 768))
display.start()

driver = webdriver.Firefox()
driver.get('https://erogol.com/')
driver.quit()

display.stop()

ref: https://erogol.com/setting-selenium-raspberrypi-23/

标签:erogol,最简,Firefox,selenium,driver,https,firefox,Raspberry,display
来源: https://www.cnblogs.com/NoobSirPersonalBlog/p/15664122.html