Skip to content

Commit

Permalink
Typos and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU committed Jun 26, 2024
1 parent 102269f commit 6c304f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ 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
4 changes: 3 additions & 1 deletion scrapypuppeteer/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,15 @@ def payload(self):
class CloseContext(PuppeteerServiceAction):
"""
Close contexts in the puppeteer-service.
Response for this action is PuppeteerHtmlResponse.
"""

endpoint = "close_context"

def __init__(self, contexts: List):
"""
:param set contexts: Contexts to close.
:param list contexts: Contexts to close.
"""
self.contexts = contexts

Expand Down

0 comments on commit 6c304f9

Please sign in to comment.