mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
BasePage补上user_agent属性
This commit is contained in:
parent
01a930b740
commit
f97a7c80de
@ -428,6 +428,10 @@ class BasePage(BaseParser):
|
||||
def json(self):
|
||||
return
|
||||
|
||||
@property
|
||||
def user_agent(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_cookies(self, as_dict=False, all_info=False):
|
||||
return {}
|
||||
|
@ -195,6 +195,9 @@ class BasePage(BaseParser):
|
||||
@property
|
||||
def json(self) -> dict: ...
|
||||
|
||||
@property
|
||||
def user_agent(self) -> str: ...
|
||||
|
||||
@abstractmethod
|
||||
def get_cookies(self, as_dict: bool = False, all_info: bool = False) -> Union[list, dict]: ...
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user