Skip to content

Commit 45254e6

Browse files
committed
Added prerequisites to ffmpeg and puppeteer
1 parent ba96397 commit 45254e6

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

docs/guides/examples/ffmpeg-video-processing.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ description: "These examples show you how to process videos in various ways usin
66

77
import LocalDevelopment from "/snippets/local-development-extensions.mdx";
88

9-
## Adding the FFmpeg build extension
9+
## Prerequisites
10+
11+
- A project with [Trigger.dev initialized](/quick-start)
12+
- [FFmpeg](https://www.ffmpeg.org/download.html) installed on your machine
13+
14+
### Adding the FFmpeg build extension
1015

1116
To use these example tasks, you'll first need to add our FFmpeg extension to your project configuration like this:
1217

docs/guides/examples/puppeteer.mdx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ description: "These examples demonstrate how to use Puppeteer with Trigger.dev."
77
import LocalDevelopment from "/snippets/local-development-extensions.mdx";
88
import ScrapingWarning from "/snippets/web-scraping-warning.mdx";
99

10+
## Prerequisites
11+
12+
- A project with [Trigger.dev initialized](/quick-start)
13+
- [Puppeteer](https://pptr.dev/guides/installation) installed on your machine
14+
1015
## Overview
1116

1217
There are 3 example tasks to follow on this page:
@@ -15,7 +20,7 @@ There are 3 example tasks to follow on this page:
1520
2. [Generate a PDF from a web page](/guides/examples/puppeteer#generate-a-pdf-from-a-web-page)
1621
3. [Scrape content from a web page](/guides/examples/puppeteer#scrape-content-from-a-web-page)
1722

18-
<ScrapingWarning/>
23+
<ScrapingWarning />
1924

2025
## Build configurations
2126

@@ -133,7 +138,6 @@ export const puppeteerWebpageToPDF = task({
133138
return { pdfUrl: s3Url };
134139
},
135140
});
136-
137141
```
138142

139143
### Testing your task
@@ -146,9 +150,10 @@ There's no payload required for this task so you can just click "Run test" from
146150

147151
In this example we use [Puppeteer](https://pptr.dev/) with a [BrowserBase](https://www.browserbase.com/) proxy to scrape the GitHub stars count from the [Trigger.dev](https://trigger.dev) landing page and log it out. See [this list](/guides/examples/puppeteer#proxying) for more proxying services we recommend.
148152

149-
<Note>
150-
When web scraping, you MUST use the technique below which uses a proxy with Puppeteer. Direct scraping without using `browserWSEndpoint` is prohibited and will result in account suspension.
151-
</Note>
153+
<Warning>
154+
When web scraping, you MUST use the technique below which uses a proxy with Puppeteer. Direct
155+
scraping without using `browserWSEndpoint` is prohibited and will result in account suspension.
156+
</Warning>
152157

153158
### Task code
154159

@@ -209,4 +214,4 @@ Here are a list of proxy services we recommend:
209214
- [Browserless](https://browserless.io/)
210215
- [Oxylabs](https://oxylabs.io/)
211216
- [ScrapingBee](https://scrapingbee.com/)
212-
- [Smartproxy](https://smartproxy.com/)
217+
- [Smartproxy](https://smartproxy.com/)

0 commit comments

Comments
 (0)