|
|
@ -1,5 +1,7 @@ |
|
|
|
|
|
|
|
# 亿牛云爬虫代理 selenium demo |
|
|
|
|
|
|
|
|
|
|
|
## 1、安装chrome并下载对应版本的chrome deriver |
|
|
|
## 1、安装 |
|
|
|
|
|
|
|
### 安装chrome并下载对应版本的chrome deriver |
|
|
|
|
|
|
|
|
|
|
|
* 下载chrome |
|
|
|
* 下载chrome |
|
|
|
https://www.google.com/chrome/ |
|
|
|
https://www.google.com/chrome/ |
|
|
@ -7,17 +9,20 @@ https://www.google.com/chrome/ |
|
|
|
* 下载对应版本 driver |
|
|
|
* 下载对应版本 driver |
|
|
|
https://chromedriver.chromium.org/downloads |
|
|
|
https://chromedriver.chromium.org/downloads |
|
|
|
|
|
|
|
|
|
|
|
## 2、pip安装库 |
|
|
|
### pip安装库 |
|
|
|
``` |
|
|
|
``` |
|
|
|
pip install -r requirements.txt |
|
|
|
pip install -r requirements.txt |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## 3、执行代码 |
|
|
|
|
|
|
|
|
|
|
|
## 2、使用 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 执行demo |
|
|
|
``` |
|
|
|
``` |
|
|
|
python demo.py |
|
|
|
python demo.py |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## 4、执行测试 |
|
|
|
* 执行测试 |
|
|
|
``` |
|
|
|
``` |
|
|
|
nox |
|
|
|
nox |
|
|
|
``` |
|
|
|
``` |
|
|
|