Skip to content

Commit aca27e5

Browse files
committed
更新WebQQ登录备注
1 parent da2de0d commit aca27e5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

web_qq.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,20 @@
5353

5454

5555
def get_hide_params_html():
56+
"""
57+
获取隐藏域表单内容
58+
:return:
59+
"""
5660
response = s.get(url_root, headers=header)
5761
return response.content
5862

5963

6064
def parse_hide_params(html):
65+
"""
66+
解析隐藏域参数
67+
:param html:
68+
:return:
69+
"""
6170
reg_params = '<input type="hidden" name="(.+?)" value="(.*?)".*?>'
6271
params_list = re.compile(reg_params, re.S).findall(html)
6372
return json.dumps(params_list, ensure_ascii=False, indent=4)

0 commit comments

Comments
 (0)