You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: anchor-browser-web-scraper/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ This example demonstrates automated web monitoring using Trigger.dev's job sched
9
9
3. The AI agent uses computer vision and natural language processing to analyze the [TDF website](https://www.tdf.org/discount-ticket-programs/tkts-by-tdf/tkts-live/)
10
10
4. AI agent returns the lowest-priced show with specific details: name, price, and showtime
11
11
12
-
13
12
#### Prerequisites
14
13
15
14
Before we dive into the code, you'll need:
16
-
- Node.js (version 16 or higher)
15
+
16
+
- Node.js (version 16 or higher)
17
17
- A Trigger.dev account - Sign up at https://trigger.dev for their free tier
18
18
- Anchor Browser API access - Get your API key from the [Anchor Browser dashboard](https://anchorbrowser.io)
@@ -50,7 +50,7 @@ Since Anchor Browser uses browser automation libraries under the hood, we need t
50
50
Configure Trigger.dev's trigger.config.ts for browser automation dependencies:
51
51
52
52
```
53
-
import { defineConfig } from "@trigger.dev/sdk/v3";
53
+
import { defineConfig } from "@trigger.dev/sdk";
54
54
55
55
export default defineConfig({
56
56
project: "proj_your_project_id_here", // Get from Trigger.dev dashboard
@@ -59,7 +59,7 @@ export default defineConfig({
59
59
build: {
60
60
external: [
61
61
"playwright-core",
62
-
"playwright",
62
+
"playwright",
63
63
"chromium-bidi"
64
64
]
65
65
}
@@ -70,7 +70,6 @@ export default defineConfig({
70
70
71
71
Create a new file within your project subfolder for trigger.dev functions, [src/trigger/broadway-monitor.ts](src/trigger/broadway-monitor.ts). Below is our Broadway ticket monitor task that runs daily at 5pm ET:
0 commit comments