diff --git a/examples/spiders/auto_recaptcha.py b/examples/spiders/auto_recaptcha.py index 332a16c..ee22a24 100644 --- a/examples/spiders/auto_recaptcha.py +++ b/examples/spiders/auto_recaptcha.py @@ -54,6 +54,5 @@ def make_screenshot(self, response: PuppeteerScreenshotResponse, **kwargs): with open("imageToSave.png", "wb") as fh: fh.write(base64.b64decode(data)) - @staticmethod - def error(failure: Failure): - print("We are in error function!") + def error(self, failure: Failure): + self.log("We are in error function!") diff --git a/examples/spiders/manual_recaptcha.py b/examples/spiders/manual_recaptcha.py index 9fb44d7..16e61e6 100644 --- a/examples/spiders/manual_recaptcha.py +++ b/examples/spiders/manual_recaptcha.py @@ -59,6 +59,5 @@ def make_screenshot(self, response: PuppeteerScreenshotResponse, **kwargs): with open("imageToSave.png", "wb") as fh: fh.write(base64.b64decode(data)) - @staticmethod - def error(failure: Failure): - print("We are in error function!") + def error(self, failure: Failure): + self.log("We are in error function!")