Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom capture script #109

Open
matteocargnelutti opened this issue Feb 19, 2023 · 0 comments
Open

Custom capture script #109

matteocargnelutti opened this issue Feb 19, 2023 · 0 comments

Comments

@matteocargnelutti
Copy link
Collaborator

matteocargnelutti commented Feb 19, 2023

It would be convenient to allow users to pass a JavaScript function allowing for customizing the way the page is going to be captured.

const capture = await Scoop.capture(
  "https://lil.law.harvard.edu", 
  { customBehavior: () => { ... }}
)
  • This function would be passed to Playwright's context via page.evaluate()
  • The contents of this function should be listed in the provenance summary, for transparency purposes (?).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant