Skip to content

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.

Fix example running steps in README

Ondra Urbana7e93bbfaade
diff --git a/README-new.md b/README-new.md
index 5e1ab17d6..66d6fab5b 100644
--- a/README-new.md
+++ b/README-new.md
@@ -261,13 +261,21 @@ For more information, view the [Apify actors quick start guide](https://www.apif
Because examples are often the best way to explain anything, let's look at some of the above
described features put to good use in solving various scraping challenges.
-All the following examples can be found in the [./examples] directory in the repository.
+All the following examples can be found in the [./examples](https://github.com/apifytech/apify-js/tree/master/examples) directory in the repository.
-Or just run the following command to see the Cheerio Crawler in action.
+To run the examples, just copy them into the folder where you installed Apify by using
+`npm install apify` and then run them by calling e.g.:
```
-node ./examples/crawler_cheerio
+node 1_basic_crawler.js
```
+Or, using the Apify CLI, you can copy the source code of one of the examples into the `main.js`
+file, created by Apify CLI and then simply call
+```
+apify run
+```
+in the project's folder.
+
### 1 - Load a few pages in raw HTML
This is the most basic example of using the Apify SDK. Start with it. It explains some
essential concepts that are used throughout the SDK.