You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,8 @@ Get help ➡️ [Github issue](https://github.com/BertramYe/preparser/issues)
115
115
116
116
# Update logs
117
117
118
+
*`version 2.0.8 `: add the func of `read_datas_from_file` into `Filer`, to help read the datas from the specified type files.
119
+
118
120
*`version 2.0.7 `: add the `ssl_certi_verified` parameter to control weather ignored the error that caused by ssl certi verification when do the requesting.
119
121
120
122
*`version 2.0.6 `: add the `html_dynamic_scope` parameters to let user can specified the whole dynamic parse scope, which can help faster the preparser speed when the `parser_mode` is `html_dynamic` . and resort the additional tools into the `ToolsHelper` package.
datas: (list[Any]) : to save the files datas, which should be a `list` Obeject
26
34
ensure_json_ascii (bool) : for the json file content writing, as from the object `PreParser` result, which no need ensure_ascii , otherwise may result the content ascii can't be decoded, just keep default False is ok.
27
35
"""
28
-
29
-
file_name=f'{new_file_name}.{self.file_type}'
30
-
# 获取文件夹路径
31
-
dir_path=dirname(file_name)
32
-
33
-
# 确保文件夹存在,若不存在则创建
34
-
makedirs(dir_path, exist_ok=True)
35
-
try:
36
-
print(f'begin to save datas into file: {file_name} !')
0 commit comments