Skip to content

Instantly share code, notes, and snippets.

@jasonmfehr
jasonmfehr / mitmproxy_requests_to_csv.py
Last active March 31, 2023 12:13
Writes mitmproxy data in CSV format to a file
import mitmproxy
from datetime import datetime
import math
class RequestsToCSV:
def load(self, loader):
#
# note: update this path to change the data file name and/or location
#
self.file_handle = open("requests-" + datetime.now().isoformat().split(".")[0] + ".csv", "w")