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
Updated README.md
Jan Curn99f24bb6b6e6
diff --git a/README.md b/README.mdindex dd367373e..db9de5fb7 100644--- a/README.md+++ b/README.md@@ -158,14 +158,16 @@ await Apify.setValue('OUTPUT', output);```By default, the value is converted to JSON and stored with the `application/json` content type.-If you want to store the data with another content type, pass it in the options as follows:+If you want to store your data with another content type, pass it in the options as follows:```javascriptawait Apify.setValue('OUTPUT', 'my text data', { contentType: 'text/plain' });```+In this case, the value must be a string or Buffer.+**IMPORTANT: Do not forget to use the `await` keyword when calling `Apify.setValue()`,-otherwise the act's process might finish before the output is stored and/or storage errors will be ignored!**+otherwise the act process might finish before the output is stored and/or storage errors will not be reported!**Besides the key `INPUT` and `OUTPUT`, you can use arbitrary keysto store any data from your act, such as its state or larger results.