抖店精选联盟数据

This commit is contained in:
aiyingfeng 2023-07-10 21:01:33 +08:00
parent 5be2b726be
commit 8f2fea987b
4 changed files with 16 additions and 0 deletions

View File

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