-
Hello @D4Vinci, I'm opening this discussion to ask for clarification on how to take screenshots when using the PlayWrightFetcher. I understand that Scrapling uses a common Response class across different fetching mechanisms. However, when specifically using the PlayWrightFetcher or the CamoufoxFetcher, which I understand is built on top of Playwright, I'm trying to figure out the best way to capture a screenshot of the fetched page. While the documentation mentions the page_action argument, which allows direct interaction with the Playwright page object during the fetch, I'm still unclear on how to access the Playwright's page.screenshot() method from the Response object returned by PlayWrightFetcher after the fetch operation. Is there a recommended way to access the underlying Playwright page object or a specific method within the Scrapling Response when using PlayWrightFetcher that would allow us to use Playwright's screenshot capabilities? Any guidance on this would be greatly appreciated. Finally, thank you for your work on Scrapling! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
oops, my bad, i made it work via the |
Beta Was this translation helpful? Give feedback.
oops, my bad, i made it work via the
page_action
... thanks anyway!