mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-22 13:09:15 +08:00
抖店精选联盟数据
This commit is contained in:
parent
5be2b726be
commit
8f2fea987b
0
抖音js逆向学习/抖店精选联盟数据/dao/__init__.py
Normal file
0
抖音js逆向学习/抖店精选联盟数据/dao/__init__.py
Normal file
0
抖音js逆向学习/抖店精选联盟数据/spider/__init__.py
Normal file
0
抖音js逆向学习/抖店精选联盟数据/spider/__init__.py
Normal 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()]
|
0
抖音js逆向学习/抖店精选联盟数据/tool/__init__.py
Normal file
0
抖音js逆向学习/抖店精选联盟数据/tool/__init__.py
Normal file
Loading…
x
Reference in New Issue
Block a user