We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da2de0d commit aca27e5Copy full SHA for aca27e5
1 file changed
web_qq.py
@@ -53,11 +53,20 @@
53
54
55
def get_hide_params_html():
56
+ """
57
+ 获取隐藏域表单内容
58
+ :return:
59
60
response = s.get(url_root, headers=header)
61
return response.content
62
63
64
def parse_hide_params(html):
65
66
+ 解析隐藏域参数
67
+ :param html:
68
69
70
reg_params = '<input type="hidden" name="(.+?)" value="(.*?)".*?>'
71
params_list = re.compile(reg_params, re.S).findall(html)
72
return json.dumps(params_list, ensure_ascii=False, indent=4)
0 commit comments