firecrawl 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/index.ts +4 -0
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ watch.addEventListener("done", state => {
|
|
|
147
147
|
|
|
148
148
|
### Batch scraping multiple URLs
|
|
149
149
|
|
|
150
|
-
To batch scrape multiple URLs with error handling, use the `batchScrapeUrls` method. It takes the starting URLs and optional parameters as arguments. The `params` argument allows you to specify additional options for the
|
|
150
|
+
To batch scrape multiple URLs with error handling, use the `batchScrapeUrls` method. It takes the starting URLs and optional parameters as arguments. The `params` argument allows you to specify additional options for the batch scrape job, such as the output formats.
|
|
151
151
|
|
|
152
152
|
```js
|
|
153
153
|
const batchScrapeResponse = await app.batchScrapeUrls(['https://firecrawl.dev', 'https://mendable.ai'], {
|
|
@@ -158,10 +158,10 @@ const batchScrapeResponse = await app.batchScrapeUrls(['https://firecrawl.dev',
|
|
|
158
158
|
|
|
159
159
|
#### Asynchronous batch scrape
|
|
160
160
|
|
|
161
|
-
To initiate an asynchronous batch scrape, utilize the `
|
|
161
|
+
To initiate an asynchronous batch scrape, utilize the `asyncBatchScrapeUrls` method. This method requires the starting URLs and optional parameters as inputs. The params argument enables you to define various settings for the scrape, such as the output formats. Upon successful initiation, this method returns an ID, which is essential for subsequently checking the status of the batch scrape.
|
|
162
162
|
|
|
163
163
|
```js
|
|
164
|
-
const
|
|
164
|
+
const asyncBatchScrapeResult = await app.asyncBatchScrapeUrls(['https://firecrawl.dev', 'https://mendable.ai'], { formats: ['markdown', 'html'] });
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
#### Batch scrape with WebSockets
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED