Custom capture script
matteocargnelutti opened this issue · 0 comments
matteocargnelutti commented
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 (?).