Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU committed Oct 31, 2024
1 parent 1edf840 commit c805292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scrapypuppeteer/middlewares/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c805292

Please sign in to comment.