You've already forked Douyin_Web_Live
删除无用__pycache__内容及vscode配置
This commit is contained in:
13
.vscode/launch.json
vendored
13
.vscode/launch.json
vendored
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Python: 当前文件",
|
|
||||||
"type": "python",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${file}",
|
|
||||||
"console": "integratedTerminal",
|
|
||||||
"args": ["https://live.douyin.com/162574996168"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"cSpell.words": [
|
|
||||||
"douyin",
|
|
||||||
"mitmproxy"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
抖音web直播间([live.douyin.com](https://live.douyin.com))弹幕抓取
|
抖音web直播间([live.douyin.com](https://live.douyin.com))弹幕抓取
|
||||||
--
|
--
|
||||||
|
|
||||||
**屏幕效果截图**
|
**屏幕效果截图**
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
# ! IMPORT ! make sure you ran mitmproxy with this script,
|
|
||||||
# eg: `/path/to/mitmproxy -s mitmproxy.py`
|
|
||||||
import time
|
|
||||||
from mitmproxy import http
|
|
||||||
import re
|
|
||||||
import requests
|
|
||||||
|
|
||||||
session = requests.session()
|
|
||||||
|
|
||||||
|
|
||||||
class Writer:
|
|
||||||
def websocket_message(self, flow: http.HTTPFlow):
|
|
||||||
re_c = re.search('webcast\d-ws-web-.*\.douyin\.com', flow.request.host)
|
|
||||||
if re_c:
|
|
||||||
message = flow.websocket.messages[-1]
|
|
||||||
if message.from_client:
|
|
||||||
return
|
|
||||||
content = message.content
|
|
||||||
session.post("http://127.0.0.1:5000/message", data=content, headers={
|
|
||||||
"X-MITM-TS": str(time.time()),
|
|
||||||
"X_REFERER": flow.request.host
|
|
||||||
}, timeout=(1, 1))
|
|
||||||
|
|
||||||
|
|
||||||
addons = [Writer()]
|
|
@ -1,10 +0,0 @@
|
|||||||
import requests
|
|
||||||
|
|
||||||
from config.helper import config
|
|
||||||
|
|
||||||
def getUserinfo(uid):
|
|
||||||
try:
|
|
||||||
r = requests.get(config()['api']['userinfo'] + str(uid))
|
|
||||||
return r.json()
|
|
||||||
except:
|
|
||||||
pass
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user