新增new,header,response字段

This commit is contained in:
shmilylty
2019-10-28 18:45:52 +08:00
parent 9fbaf19f35
commit 9c25b77aa6
5 changed files with 30 additions and 18 deletions
+2
View File
@@ -166,6 +166,8 @@ def request_callback(future, index, datas):
'X-Powered-By': headers.get('X-Powered-By')})
datas[index]['banner'] = banner
datas[index]['title'] = get_title(text)
datas[index]['header'] = str(dict(headers))
datas[index]['response'] = text
else:
datas[index]['reason'] = 'Something error'
datas[index]['valid'] = 0