Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Bump version, update Changelog, build docs
Ondra Urbanbbf7629d50a8
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e882fb9f0..fee496aa0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,3 +1,7 @@+0.14.7 / 2019-05-12+===================+- Bump `apify-client` to 0.5.16+0.14.6 / 2019-05-09===================- Stringification to JSON of actor input in `Apify.call()`, `Apify.callTask()` and `Apify.metamorph()`diff --git a/docs/api/Apify.md b/docs/api/Apify.mdindex 041c2926e..2d97120e8 100644--- a/docs/api/Apify.md+++ b/docs/api/Apify.md@@ -10,7 +10,7 @@ accessible from the left sidebar.* [Apify](#module_Apify)- * [`.addWebhook()`](#module_Apify.addWebhook) ⇒ <code>Promise<(Object|undefined)></code>+ * [`.addWebhook(options)`](#module_Apify.addWebhook) ⇒ <code>Promise<Object></code>* [`.call(actId, [input], [options])`](#module_Apify.call) ⇒ [<code>Promise<ActorRun></code>](../typedefs/actorrun)* [`.callTask(taskId, [input], [options])`](#module_Apify.callTask) ⇒ [<code>Promise<ActorRun></code>](../typedefs/actorrun)* [`.client`](#module_Apify.client)@@ -34,7 +34,7 @@ accessible from the left sidebar.<a name="module_Apify.addWebhook"></a>-## `Apify.addWebhook()` ⇒ <code>Promise<(Object|undefined)></code>+## `Apify.addWebhook(options)` ⇒ <code>Promise<Object></code>Creates an ad-hoc webhook for the current actor run, which lets you receive a notification when the actor run finished or failed.For more information about Apify actor webhooks, please see the <a href="https://apify.com/docs/webhook" target="_blank">documentation</a>.@@ -49,16 +49,30 @@ In local environment, the function will print a warning and have no effect.</thead><tbody><tr>+<td><code>options</code></td><td><code>Object</code></td>+</tr>+<tr>+<td colspan="3"></td></tr><tr><td><code>options.eventTypes</code></td><td><code>Array<String></code></td></tr><tr><td colspan="3"><p>Array of event types, which you can set for actor run, see-the <a href="https://apify.com/docs/webhooks#events-actor-run" target="_blank">actor run events</a> in the Apify doc.</p>+ the <a href="https://apify.com/docs/webhooks#events-actor-run" target="_blank">actor run events</a> in the Apify doc.</p></td></tr><tr><td><code>options.requestUrl</code></td><td><code>String</code></td></tr><tr>-<td colspan="3"><p>URL which will be requested using HTTP POST request, when actor run will be in specific event type.</p>+<td colspan="3"><p>URL which will be requested using HTTP POST request, when actor run will reach the set event type.</p>+</td></tr><tr>+<td><code>[options.payloadTemplate]</code></td><td><code>String</code></td>+</tr>+<tr>+<td colspan="3"><p>Payload template is a JSON-like string that describes the structure of the webhook POST request payload.+ It uses JSON syntax, extended with a double curly braces syntax for injecting variables <code>{{variable}}</code>.+ Those variables are resolved at the time of the webhook's dispatch, and a list of available variables with their descriptions+ is available in the <a href="https://apify.com/docs/webhooks" target="_blank">Apify webhook documentation</a>.</p>+<p> When omitted, the default payload template will be used.+ <a href="https://apify.com/docs/webhooks" target="_blank">See the docs for the default payload template</a>.</p></td></tr></tbody></table><a name="module_Apify.call"></a>diff --git a/package.json b/package.jsonindex 5ae05ee22..444a2b778 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "apify",- "version": "0.14.6",+ "version": "0.14.7","description": "The scalable web crawling and scraping library for JavaScript. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.","engines": {"node": ">=8.14.0"@@ -50,7 +50,7 @@},"dependencies": {"@apify/ps-tree": "^1.1.3",- "apify-client": "^0.5.14",+ "apify-client": "^0.5.16","apify-shared": "^0.1.44","cheerio": "^1.0.0-rc.2","content-type": "^1.0.4",