2024-04-26 04:04:27 发布
网友
我很想用Python编写一个程序,可以:
我不知道Python是否允许这样做。你可以给我一个提示,比如做这项工作的库的名称(如果存在的话),剩下的我自己来做。你知道吗
一种选择是使用^{}启动Firefox,并使用WebDriver API与之交互:
Firefox
WebDriver API
from selenium import webdriver driver = webdriver.Firefox() driver.get(url)
这实际上是内置在Python标准库中的(我从来没有确切地知道为什么,这是一个随机的功能)。你知道吗
import webbrowser webbrowser.open(my_url)
将this other answer in stackoverflow与this from mozilla's forum组合,得到:
from subprocess import call call(["firefox", "http://your_url"])
一种选择是使用^{} 启动
Firefox
,并使用WebDriver API
与之交互:这实际上是内置在Python标准库中的(我从来没有确切地知道为什么,这是一个随机的功能)。你知道吗
将this other answer in stackoverflow与this from mozilla's forum组合,得到:
相关问题 更多 >
编程相关推荐