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
Bugfix: key-value store API uses "recordKey" instead of "key", bumped package.json version
Jan Curn363841444432
diff --git a/package.json b/package.jsonindex 820a01a6d..ef986eb7a 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "apifier",- "version": "0.0.29",+ "version": "0.0.30","description": "Apifier runtime for JavaScript","main": "build/index.js","keywords": [diff --git a/src/actor.js b/src/actor.jsindex 671a9f3ef..f87778cb5 100644--- a/src/actor.js+++ b/src/actor.js@@ -53,7 +53,7 @@ export const getInput = (callback = null) => {return apifyClient.keyValueStores.getRecord({storeId: getDefaultStoreIdOrThrow(),promise: getPromisesDependency(),- key: KV_STORE_KEYS.INPUT,+ recordKey: KV_STORE_KEYS.INPUT,}, callback);};@@ -73,7 +73,7 @@ export const setOutput = (output, callback = null) => {return apifyClient.keyValueStores.putRecord({storeId: getDefaultStoreIdOrThrow(),promise: getPromisesDependency(),- key: KV_STORE_KEYS.OUTPUT,+ recordKey: KV_STORE_KEYS.OUTPUT,body: output.body,contentType: output.contentType,}, callback);diff --git a/test/actor.js b/test/actor.jsindex d62c3ea47..7cca5118b 100644--- a/test/actor.js+++ b/test/actor.js@@ -158,7 +158,7 @@ const testMain = ({ userFunc, context, exitCode, mockInputException, mockOutputE.withExactArgs({storeId: context.defaultKeyValueStoreId,promise: Apifier.getPromisesDependency(),- key: 'INPUT',+ recordKey: 'INPUT',}, null).returns(Promise.resolve(context.input)).once();@@ -179,7 +179,7 @@ const testMain = ({ userFunc, context, exitCode, mockInputException, mockOutputE.withExactArgs({storeId: context.defaultKeyValueStoreId,promise: Apifier.getPromisesDependency(),- key: 'OUTPUT',+ recordKey: 'OUTPUT',contentType: expectedOutput.contentType,body: expectedOutput.body,}, null)@@ -327,7 +327,7 @@ describe('Apifier.getContext()', () => {.withExactArgs({storeId: expectedContext.defaultKeyValueStoreId,promise: Apifier.getPromisesDependency(),- key: 'INPUT',+ recordKey: 'INPUT',}, null).once().returns(Promise.resolve(expectedContext.input));