I am trying to use cefPython and the OnBeforeResourceLoad method.
I have implemented it as follows:
def OnBeforeResourceLoad(self, browser, request, redirectURL, streamReader, response, loadFlags):
#
if request.GetUrl() == "http://firsturl":
redirectURL = "http://secondurl"
return False
However when running the program i get the following:
TypeError: OnBeforeResourceLoad() takes exactly 7 arguments (4 given)
What am I doing wrong here ?
The documentation for this is here: