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
Accomodating to the changed interface of apify-client, bumped package.json version
Jan Curn815770b6d0c9
diff --git a/package.json b/package.jsonindex 37937964d..dfa053875 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "apifier",- "version": "0.0.42",+ "version": "0.0.43","description": "Apifier runtime for JavaScript","main": "build/index.js","keywords": [diff --git a/src/actor.js b/src/actor.jsindex d7dcbb84d..0c18485b8 100644--- a/src/actor.js+++ b/src/actor.js@@ -43,7 +43,7 @@ export const getInput = (callback = null) => {return apifyClient.keyValueStores.getRecord({storeId: getDefaultStoreIdOrThrow(),promise: getPromisePrototype(),- recordKey: KV_STORE_KEYS.INPUT,+ key: KV_STORE_KEYS.INPUT,});}).then((input) => {@@ -88,7 +88,7 @@ export const setOutput = (output, callback = null) => {return apifyClient.keyValueStores.putRecord({storeId: getDefaultStoreIdOrThrow(),promise: getPromisePrototype(),- recordKey: KV_STORE_KEYS.OUTPUT,+ key: KV_STORE_KEYS.OUTPUT,body: output.body,contentType: output.contentType,});diff --git a/test/actor.js b/test/actor.jsindex 19245785c..d1d088f91 100644--- a/test/actor.js+++ b/test/actor.js@@ -149,7 +149,7 @@ const testMain = ({ userFunc, context, exitCode, mockInputException, mockOutputE.withExactArgs({storeId: context.defaultKeyValueStoreId,promise: Apifier.getPromisesDependency(),- recordKey: 'INPUT',+ key: 'INPUT',}).returns(Promise.resolve(context.input)).once();@@ -170,7 +170,7 @@ const testMain = ({ userFunc, context, exitCode, mockInputException, mockOutputE.withExactArgs({storeId: context.defaultKeyValueStoreId,promise: Apifier.getPromisesDependency(),- recordKey: 'OUTPUT',+ key: 'OUTPUT',contentType: expectedOutput.contentType,body: expectedOutput.body,})@@ -350,7 +350,7 @@ describe('Apifier.getContext()', () => {.withExactArgs({storeId: expectedContext.defaultKeyValueStoreId,promise: Apifier.getPromisesDependency(),- recordKey: 'INPUT',+ key: 'INPUT',}).once().returns(Promise.resolve(expectedContext.input));