更新README

This commit is contained in:
g1879 2020-06-18 14:33:05 +08:00
parent ebc61d5d49
commit a067c9444a
2 changed files with 10 additions and 2 deletions

View File

@ -602,7 +602,7 @@ print(page.ele('@id:su').text) # Output:百度一下
## Drission class
class **Drission**(driver_options: Union[dict, Options] = None, session_options: dict = None, driver_path: str = None, ini_path = None)
class **Drission**(driver_options: Union[dict, Options] = None, session_options: dict = None, driver_path: str = None, ini_path = None, proxy: dict = None)
Used to manage driver and session objects.
@ -629,6 +629,10 @@ print(page.ele('@id:su').text) # Output:百度一下
Return session configuration in dictionary format.
### proxy
Return proxy configuration in dictionary format.
### cookies_to_session
cookies_to_session(copy_user_agent: bool = False, driver: WebDriver = None, session: Session = None) -> None

View File

@ -597,7 +597,7 @@ print(page.ele('@id:su').text) # 输出:百度一下
## Drission类
class **Drission**(driver_options: Union[dict, Options] = None, session_options: dict = None, driver_path: str = None, ini_path: str = None)
class **Drission**(driver_options: Union[dict, Options] = None, session_options: dict = None, driver_path: str = None, ini_path: str = None, proxy: dict = None)
用于管理driver和session对象。
@ -624,6 +624,10 @@ class **Drission**(driver_options: Union[dict, Options] = None, session_options:
以字典格式返回或设置session配置。
### proxy
以字典格式返回代理配置。
### cookies_to_session
cookies_to_session(copy_user_agent: bool = False, driver: WebDriver = None, session: Session = None) -> None