This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |