Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium CLI

下载插件

https://github.com/mozilla/geckodriver/releases
https://ftp.mozilla.org/pub/firefox/releases/

安装Python环境

pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple selenium bs4 requests fastmcp

安装FireFox浏览器64位版,并下载geckodriver.exe程序64位版,以管理员身份运行geckodriver程序

geckodriver.exe --host 0.0.0.0 --binary "C:\Program Files\Mozilla Firefox\firefox.exe"

打开selenium_cli.py脚本,等待载入浏览器,并输入help命令调出执行命令行。

image

输入open_url打开https://www.sina.com网址测试。

image

以下载文件为例,输入batch_link_download命令实现完整文件下载功能。

image

Releases

Packages

Contributors

Languages