mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
更新README
This commit is contained in:
parent
ebc61d5d49
commit
a067c9444a
@ -602,7 +602,7 @@ print(page.ele('@id:su').text) # Output:百度一下
|
|||||||
|
|
||||||
## Drission class
|
## 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.
|
Used to manage driver and session objects.
|
||||||
|
|
||||||
@ -629,6 +629,10 @@ print(page.ele('@id:su').text) # Output:百度一下
|
|||||||
|
|
||||||
Return session configuration in dictionary format.
|
Return session configuration in dictionary format.
|
||||||
|
|
||||||
|
### proxy
|
||||||
|
|
||||||
|
Return proxy configuration in dictionary format.
|
||||||
|
|
||||||
### cookies_to_session
|
### cookies_to_session
|
||||||
|
|
||||||
cookies_to_session(copy_user_agent: bool = False, driver: WebDriver = None, session: Session = None) -> None
|
cookies_to_session(copy_user_agent: bool = False, driver: WebDriver = None, session: Session = None) -> None
|
||||||
|
@ -597,7 +597,7 @@ print(page.ele('@id:su').text) # 输出:百度一下
|
|||||||
|
|
||||||
## Drission类
|
## 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对象。
|
用于管理driver和session对象。
|
||||||
|
|
||||||
@ -624,6 +624,10 @@ class **Drission**(driver_options: Union[dict, Options] = None, session_options:
|
|||||||
|
|
||||||
以字典格式返回或设置session配置。
|
以字典格式返回或设置session配置。
|
||||||
|
|
||||||
|
### proxy
|
||||||
|
|
||||||
|
以字典格式返回代理配置。
|
||||||
|
|
||||||
### cookies_to_session
|
### cookies_to_session
|
||||||
|
|
||||||
cookies_to_session(copy_user_agent: bool = False, driver: WebDriver = None, session: Session = None) -> None
|
cookies_to_session(copy_user_agent: bool = False, driver: WebDriver = None, session: Session = None) -> None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user