From 8f2fea987b0629ee54e22f26013e526f1a18d832 Mon Sep 17 00:00:00 2001 From: aiyingfeng Date: Mon, 10 Jul 2023 21:01:33 +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逆向学习/抖店精选联盟数据/dao/__init__.py | 0 .../抖店精选联盟数据/spider/__init__.py | 0 .../spider/buyin_authorStatData_seekAuthor_mitm.py | 16 ++++++++++++++++ 抖音js逆向学习/抖店精选联盟数据/tool/__init__.py | 0 4 files changed, 16 insertions(+) create mode 100644 抖音js逆向学习/抖店精选联盟数据/dao/__init__.py create mode 100644 抖音js逆向学习/抖店精选联盟数据/spider/__init__.py create mode 100644 抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py create mode 100644 抖音js逆向学习/抖店精选联盟数据/tool/__init__.py diff --git a/抖音js逆向学习/抖店精选联盟数据/dao/__init__.py b/抖音js逆向学习/抖店精选联盟数据/dao/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/抖音js逆向学习/抖店精选联盟数据/spider/__init__.py b/抖音js逆向学习/抖店精选联盟数据/spider/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py b/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py new file mode 100644 index 0000000..f26329c --- /dev/null +++ b/抖音js逆向学习/抖店精选联盟数据/spider/buyin_authorStatData_seekAuthor_mitm.py @@ -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()] diff --git a/抖音js逆向学习/抖店精选联盟数据/tool/__init__.py b/抖音js逆向学习/抖店精选联盟数据/tool/__init__.py new file mode 100644 index 0000000..e69de29