diff --git a/README.md b/README.md index ef5d74d..48665ee 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ In this case RecaptchaMiddleware will just skip the request. Sometimes you may receive responses with status 422 (Unprocessable Entity). This means the scrapy-puppeteer-services struggled to find provided context or page in its memory. -In such situations you can use this middleware to restore such contexts. +In such situations you can use this middleware to restore these contexts. Enabling the middleware: ```Python @@ -211,6 +211,9 @@ yield PuppeteerRequest( ... ``` +Also, you can see `dead_context` spider and try to enable `PuppeteerContextRestoreDownloaderMiddleware` in its `custom_settings` +to see the working middleware. + ## TODO - [x] skeleton that could handle goto, click, scroll, and actions diff --git a/scrapypuppeteer/middlewares/restore.py b/scrapypuppeteer/middlewares/restore.py index 13cc68b..ba841c3 100644 --- a/scrapypuppeteer/middlewares/restore.py +++ b/scrapypuppeteer/middlewares/restore.py @@ -21,7 +21,7 @@ class PuppeteerContextRestoreDownloaderMiddleware: The middleware uses additionally these meta-keys, do not use them, because their changing could possibly (almost probably) break determined behaviour: - `__request_binding`, `__restore_count`, `__context_id`. + `__request_binding` Settings: