Page Printer
Pricing
Pay per usage
Go to Apify Store
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Marco Gullo
Maintained by Community
Actor stats
3
Bookmarked
66
Total users
4
Monthly active users
9 months ago
Last modified
Categories
Share
Tips and tricks
Pre-function
You can execute arbitrary code before performing a screenshot, passing a function which takes as input the Playwright Crawling Context.
You can also register information which will be written to the output Dataset, writing into the record with the key notes in the userData.
Example:
const preFunction = async (context) => {const { request, page } = context;const { userData } = request;const { notes } = userData;// Perform some operation in the pageawait page.selector('...').click();if (page.selector('...').isVisible) {notes.isElementVisible = true;} else {notes.isElementVisible = false;}}
Output data:
[{"url": "https://...","fileUrl": "...","fileKey": "...","notes": {"isElementVisible": true}},{"url": "https://...","fileUrl": "...","fileKey": "...","notes": {"isElementVisible": false}}]
Contributing
Input schema
Edit input schema in src-schemas.
You can use any JSON schema option, not just the ones from Apify specifications.
Install apify-schema-tools globally and run:
npx generate-apify-type --input && npx generate-apify-schema --input
