diff --git a/mitmproxy/README.md b/mitmproxy/README.md index 47fd5ee..098abfa 100644 --- a/mitmproxy/README.md +++ b/mitmproxy/README.md @@ -7,6 +7,10 @@ def response(flow): flow.response = flow.replay().response print(f"재시도 {retries}: 상태 코드 {flow.response.status_code}") ``` +```python +for idx, line in enumerate(open('m3u8').readlines()): + os.system(f"ffmpeg -y -http_proxy http://localhost:8080 -i '{line.strip()}' -c:v copy -c:a copy {idx+1:02}.mp4") +``` ```shell mitmweb