From 3413db86515f3fa59b163b48eedc97d5985dd0a5 Mon Sep 17 00:00:00 2001 From: luzhisheng Date: Tue, 11 Jul 2023 02:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=96=E5=BA=97=E7=B2=BE=E9=80=89=E8=81=94?= =?UTF-8?q?=E7=9B=9F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 抖音js逆向学习/抖店精选联盟数据/README.md | 3 +++ .../抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 抖音js逆向学习/抖店精选联盟数据/README.md diff --git a/抖音js逆向学习/抖店精选联盟数据/README.md b/抖音js逆向学习/抖店精选联盟数据/README.md new file mode 100644 index 0000000..ce87004 --- /dev/null +++ b/抖音js逆向学习/抖店精选联盟数据/README.md @@ -0,0 +1,3 @@ +# 文档 + + mitmdump -s ./spider/buyin_authorStatData_seekAuthor_mitm.py -p 9999 -q \ No newline at end of file diff --git a/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py b/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py index f26329c..ecb5361 100644 --- a/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py +++ b/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py @@ -5,10 +5,8 @@ class AddHeader: def __init__(self): self.num = 0 - def request(self, flow: mitmproxy.http.HTTPFlow): - print(flow.request.url) - def response(self, flow): + print(flow.request.host) self.num = self.num + 1 flow.response.headers["count"] = str(self.num)