更新README

This commit is contained in:
g1879 2020-05-25 14:42:44 +08:00
parent 14da34a834
commit 1f7ae21ff5
2 changed files with 1289 additions and 29 deletions

File diff suppressed because it is too large Load Diff

View File

@ -111,7 +111,7 @@ from DrissionPage import *
配置路径有三种方法:
- 将两个路径路径写入系统变量。
- 将两个路径写入系统变量。
- 使用时手动传入路径。
- 将路径写入本库的ini文件推荐
@ -119,7 +119,7 @@ from DrissionPage import *
```python
from DrissionPage.easy_set import set_paths
driver_path = 'C:\\chrome\\chromedriver.exe' # 你的driver_path路径,可选
driver_path = 'C:\\chrome\\chromedriver.exe' # 你的chromedriver.exe路径,可选
chrome_path = 'D:\\chrome\\chrome.exe' # 你的chrome.exe路径可选
set_paths(driver_path, chrome_path)
```
@ -490,9 +490,11 @@ print(page.ele('@id:su').text) # 输出:百度一下
## Drission类
class **Drission**(driver_options: Union[dict, Options] = None, session_options: dict = None, driver_path: str = None)
class **Drission**(driver_options: Union[dict, Options] = None, session_options: dict = None, driver_path: str = None)
用于管理driver和session对象。参数说明
用于管理driver和session对象。
参数说明:
- driver_options - chrome配置参数可接收Options对象或字典
- session_options - session配置参数接收字典