Skip to main content
WEB SCRAPING: When web scraping, you MUST use a proxy to comply with our terms of service. Direct scraping of third-party websites without the site owner’s permission using Trigger.dev Cloud is prohibited and will result in account suspension. See this example which uses a proxy.

Overview

This example demonstrates automated web monitoring using Trigger.dev’s task scheduling and Anchor Browser’s AI-powered browser automation tools. The task runs daily at 5pm ET to find the cheapest Broadway tickets available for same-day shows. How it works:
  • Trigger.dev schedules and executes the monitoring task
  • Anchor Browser spins up a remote browser session with an AI agent
  • The AI agent uses computer vision and natural language processing to analyze the TDF website
  • AI agent returns the lowest-priced show with specific details: name, price, and showtime

Tech stack

  • Node.js runtime environment (version 18.2 or higher)
  • Trigger.dev for task scheduling and task orchestration
  • Anchor Browser for AI-powered browser automation
  • Playwright for browser automation libraries (handled via external dependencies)

GitHub repo

View the Anchor Browser web scraper repo

Click here to view the full code for this project in our examples repository on GitHub. You can fork it and use it as a starting point for your own project.

Relevant code

Broadway ticket monitor task

This task runs daily at 5pm ET, in src/trigger/broadway-monitor.ts:

Build configuration

Since Anchor Browser uses browser automation libraries (Playwright) under the hood, we need to configure Trigger.dev to handle these dependencies properly by excluding them from the build bundle in trigger.config.ts:

Learn more