Commit Graph

460 Commits

Author SHA1 Message Date
g1879
798d3e771a 修复获取编码可能出错的bug 2020-11-15 18:13:23 +08:00
g1879
6c35dad79d 1.5.0 2020-11-13 11:00:22 +08:00
g1879
38b4f6d0d3 1.5.0 2020-11-13 10:40:23 +08:00
g1879
35c4af8f17 微调注释 2020-11-13 10:33:01 +08:00
g1879
8a863ef07d SessionElement的html属性现在不会折叠空元素 2020-11-13 10:32:50 +08:00
g1879
0462e9f2b3 修复text为None时format_html()函数出错的bug 2020-11-13 00:10:45 +08:00
g1879
cad7d62eb0 ShadowElement增加__call__() 2020-11-13 00:09:38 +08:00
g1879
70cc8da88d DriverElement和SessionElement增加link属性 2020-11-13 00:09:01 +08:00
g1879
eb866ba29e 元素的html属性改为返回outerHTML,增加inner_html属性;
处理xpath时只对/开头的情况添加.;
在统一的函数处理html转码及空格替换
2020-11-12 18:09:01 +08:00
g1879
78437f604e translate_loc_to_xpath()改名translate_loc();
format_html改名str_to_loc();
增加format_html()
2020-11-12 18:04:02 +08:00
g1879
7dc36efc7c 1.5.0 2020-11-12 17:57:37 +08:00
g1879
7b3a8f5d7f 1.5.0 2020-11-11 17:46:29 +08:00
g1879
b3388f067d 调整注释及格式 2020-11-11 17:46:12 +08:00
g1879
a64b4290f6 _try_to_get()改名为_try_to_connect() 2020-11-11 17:45:09 +08:00
g1879
30cccc8c86 post()增加重试次数和间隔时间参数 2020-11-11 17:44:02 +08:00
g1879
c3a9cd645d close_driver()和close_session()不切换模式;
post()增加重试次数和间隔时间参数
2020-11-11 17:42:48 +08:00
g1879
4274368e5e close_driver()和close_session()不切换模式 2020-11-11 17:40:45 +08:00
g1879
42263e16c1 调整格式 2020-11-10 23:40:27 +08:00
g1879
9b3158b866 修改格式 2020-11-10 17:57:48 +08:00
g1879
8d49d9accb DriverElement增加after、before属性、get_style_property()方法 2020-11-09 14:31:13 +08:00
g1879
dbdea2a00f 调整格式 2020-11-09 14:27:31 +08:00
g1879
3a5501ddac ele()方法删除show_errmsg参数 2020-11-09 00:10:20 +08:00
g1879
0a3cdaf8f3 调整格式 2020-11-09 00:09:37 +08:00
g1879
c44705c3ee 微调 2020-11-09 00:07:57 +08:00
g1879
3821338d26 微调 2020-11-08 23:44:09 +08:00
g1879
cf7d76b040 增加_get_brother()方法用于获取兄弟节点;
增加_get_ele_path()方法用于获取xpath和css path
2020-11-08 23:34:47 +08:00
g1879
c348d559f6 增加_get_brother()方法用于获取兄弟节点 2020-11-08 23:33:49 +08:00
g1879
d0467241b4 增加__call__()方法,等效于ele() 2020-11-08 23:29:20 +08:00
g1879
ba245d4b47 调整格式及注释 2020-11-08 23:27:10 +08:00
g1879
7e0f641425 调整格式及注释 2020-11-08 23:24:05 +08:00
g1879
800d56adf2 微调无修改 2020-11-07 15:47:08 +08:00
g1879
e439c1f679 SessionElement的attr()删除对#和?开头相对路径的处理 2020-11-07 15:46:35 +08:00
g1879
80c8dab34c 更新 2020-11-07 15:05:04 +08:00
g1879
97c3197df4 ele()和eles()删除show_errmsg参数;
增加__call__()方法,ele('xxx')等效于ele.ele('xxx')
2020-11-07 15:04:37 +08:00
g1879
1e8e606f93 ele()和eles()删除show_errmsg参数;
增加__call__()方法,ele('xxx')等效于ele.ele('xxx')
2020-11-07 15:03:27 +08:00
g1879
47ef460c2d ele()和eles()删除show_errmsg参数 2020-11-07 15:00:31 +08:00
g1879
196480c214 ele()和eles()删除show_errmsg参数 2020-11-07 15:00:16 +08:00
g1879
36ebf16b2a ele()和eles()删除show_errmsg参数 2020-11-07 14:49:50 +08:00
g1879
515222b35c 1.5.0 2020-11-06 18:08:30 +08:00
g1879
da849f56cc 去除对requests_html的依赖,改用lxml支撑s模式 2020-11-06 18:07:14 +08:00
g1879
6714ed116e DrissionElement增加page属性 2020-11-06 18:04:53 +08:00
g1879
fb341f212a 删除requests_html导入 2020-11-06 18:03:44 +08:00
g1879
b7e85df5b9 删除requests_html导入 2020-11-06 18:02:27 +08:00
g1879
f2298e3f47 DriverElement添加page属性,指向所属页面对象 2020-11-06 18:00:47 +08:00
g1879
1d9489b6ef DriverElement添加page属性,指向所属页面对象,并取消driver属性 2020-11-06 17:59:43 +08:00
g1879
c9eae68acb 弃用requests_html,未完成 2020-11-05 17:48:02 +08:00
g1879
41d700a3d9 弃用requests_html,未完成 2020-11-04 16:34:55 +08:00
g1879
bbea8871a0 把获取到的文本中的\xa0替换成空格 2020-11-03 17:26:28 +08:00
g1879
126fd466b2 去掉eles获取到的元素间换行符 2020-11-03 16:35:55 +08:00
g1879
914646e0f0 微调,完善ele()类型判断及注解 2020-11-03 12:30:55 +08:00