Skip to content

Commit

Permalink
Readme and extra import
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU committed Jun 28, 2024
1 parent 8ee03ad commit a76ed2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Here is the list of available actions:
- `Screenshot(options)` - take screenshot
- `RecaptchaSolver(solve_recaptcha)` - find or solve recaptcha on page
- `CustomJsAction(js_function)` - evaluate JS function on page
- `CloseContext(contexts)` - close active contexts in the service

Available options essentially mirror [service](https://github.com/ispras/scrapy-puppeteer-service) method parameters, which in turn mirror puppeteer API functions to some extent.
See `scrapypuppeteer.actions` module for details.
Expand Down Expand Up @@ -103,6 +102,9 @@ By default, only cookies are sent.
You would also like to send meta with your request. By default, you are not allowed to do this
in order to sustain backward compatibility. You can change this behaviour by setting `PUPPETEER_INCLUDE_META` to True.

One your spider has done the crawling, the service middleware would close all contexts with
`scrapypuppeteer.CloseContextRequest`. It accepts a list of all browser contexts to be closed.

## Automatic recaptcha solving

Enable PuppeteerRecaptchaDownloaderMiddleware to automatically solve recaptcha during scraping. We do not recommend
Expand Down
1 change: 0 additions & 1 deletion scrapypuppeteer/actions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import abstractmethod, ABC
from typing import List


class PuppeteerServiceAction(ABC):
Expand Down

0 comments on commit a76ed2f

Please sign in to comment.