📅  最后修改于: 2022-03-11 14:59:27.445000             🧑  作者: Mango
// Add headless mode on Server!
from selenium import webdriver
from selenium.webdriver import FirefoxOptions
opts = FirefoxOptions()
opts.add_argument("--headless")
browser = webdriver.Firefox(firefox_options=opts)
browser.get('http://example.com')