def __init__(self, verbosity=0): super(QWebPage, self).__init__() self.verbosity = verbosity self.har_log = HarLog() self.mainFrame().urlChanged.connect(self.onUrlChanged) self.mainFrame().titleChanged.connect(self.onTitleChanged) self.mainFrame().loadFinished.connect(self.onLoadFinished) self.mainFrame().initialLayoutCompleted.connect(self.onLayoutCompleted)
def __init__(self, verbosity=0): super(QWebPage, self).__init__() self.verbosity = verbosity self.har_log = HarLog() self.cookiejar = SplashCookieJar(self) self.callbacks = {'on_request': [], "on_response_headers": []} self.mainFrame().urlChanged.connect(self.onUrlChanged) self.mainFrame().titleChanged.connect(self.onTitleChanged) self.mainFrame().loadFinished.connect(self.onLoadFinished) self.mainFrame().initialLayoutCompleted.connect(self.onLayoutCompleted)
def reset(self): """ Start building a new HAR log """ self.log = HarLog()
def __init__(self): self.log = HarLog() self.history = []