mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
更新README
This commit is contained in:
parent
e4c7b81fa3
commit
cbc07a6554
@ -721,7 +721,7 @@ Parameter Description:
|
|||||||
|
|
||||||
### download
|
### download
|
||||||
|
|
||||||
download(file_url: str, goal_path: str = None, rename: str = None, **kwargs) -> tuple
|
download(file_url: str, goal_path: str = None, rename: str = None, show_msg: bool = False, **kwargs) -> tuple
|
||||||
|
|
||||||
Download a file, return success and download information string. Changing the method will automatically avoid renaming the existing file in the target path.
|
Download a file, return success and download information string. Changing the method will automatically avoid renaming the existing file in the target path.
|
||||||
|
|
||||||
@ -730,6 +730,7 @@ Parameter Description:
|
|||||||
- file_url - File URL
|
- file_url - File URL
|
||||||
- goal_path - Storage path, the default is the temporary folder specified in the ini file
|
- goal_path - Storage path, the default is the temporary folder specified in the ini file
|
||||||
- rename - Rename the file name, not renamed by default
|
- rename - Rename the file name, not renamed by default
|
||||||
|
- show_msg - Show download massage or not.
|
||||||
- kwargs - Connection parameters for requests
|
- kwargs - Connection parameters for requests
|
||||||
|
|
||||||
|
|
||||||
|
@ -723,7 +723,7 @@ MixPage封装了页面操作的常用功能,可在driver和session模式间无
|
|||||||
|
|
||||||
### download
|
### download
|
||||||
|
|
||||||
download(file_url: str, goal_path: str = None, rename: str = None, **kwargs) -> tuple
|
download(file_url: str, goal_path: str = None, rename: str = None, show_msg: bool = False, **kwargs) -> tuple
|
||||||
|
|
||||||
下载一个文件,返回是否成功和下载信息字符串。改方法会自动避免和目标路径现有文件重名。
|
下载一个文件,返回是否成功和下载信息字符串。改方法会自动避免和目标路径现有文件重名。
|
||||||
|
|
||||||
@ -732,6 +732,7 @@ MixPage封装了页面操作的常用功能,可在driver和session模式间无
|
|||||||
- file_url - 文件URL
|
- file_url - 文件URL
|
||||||
- goal_path - 存放路径,默认为ini文件中指定的临时文件夹
|
- goal_path - 存放路径,默认为ini文件中指定的临时文件夹
|
||||||
- rename - 重命名文件名,默认不重命名
|
- rename - 重命名文件名,默认不重命名
|
||||||
|
- show_msg - 是否显示下载信息
|
||||||
- kwargs - 用于requests的连接参数
|
- kwargs - 用于requests的连接参数
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user