抖店精选联盟数据

This commit is contained in:
luzhisheng 2023-07-11 02:07:04 +08:00
parent 4198c8afee
commit 3413db8651
2 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1,3 @@
# 文档
mitmdump -s ./spider/buyin_authorStatData_seekAuthor_mitm.py -p 9999 -q

View File

@ -5,10 +5,8 @@ class AddHeader:
def __init__(self): def __init__(self):
self.num = 0 self.num = 0
def request(self, flow: mitmproxy.http.HTTPFlow):
print(flow.request.url)
def response(self, flow): def response(self, flow):
print(flow.request.host)
self.num = self.num + 1 self.num = self.num + 1
flow.response.headers["count"] = str(self.num) flow.response.headers["count"] = str(self.num)