Example Code Runner (Playwright) avatar
Example Code Runner (Playwright)
Try for free

No credit card required

View all Actors
Example Code Runner (Playwright)

Example Code Runner (Playwright)

apify/example-code-runner-playwright
Try for free

No credit card required

Generic Actor to run code examples from the documentation via "Run on Apify" links.

Crawlee & Playwright & Chrome template

Web scraper example with Crawlee, Playwright and headless Chrome. Playwright is more modern, user-friendly and harder to block than Puppeteer.

Getting Started

Install Apify CLI

Using Homebrew

brew install apify/tap/apify-cli

Using NPM

npm -g install apify-cli

Create a new Actor using this template

apify create my-typescript-actor -t project_playwright_crawler_ts

Run the Actor locally

1cd my-typescript-actor
2apify run

Deploy on Apify

Log in to Apify

You will need to provide your Apify API Token to complete this action.

apify login

Deploy your Actor

This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

Developer
Maintained by Apify
Actor metrics
  • 50 monthly users
  • 94.0% runs succeeded
  • 0.0 days response time
  • Created in Sep 2023
  • Modified 6 months ago