# selenium_cli
**Repository Path**: lyshark/selenium_cli
## Basic Information
- **Project Name**: selenium_cli
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: GPL-3.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-08-13
- **Last Updated**: 2026-08-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 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命令调出执行命令行。
输入open_url打开https://www.sina.com网址测试。
以下载文件为例,输入batch_link_download命令实现完整文件下载功能。
