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.

Fixing links

Marek Trunkatea834762b9ec
diff --git a/package.json b/package.json
index 450b3e960..5f34237cd 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "apify",
- "version": "0.5.8",
+ "version": "0.5.9",
"description": "Apify JavaScript SDK",
"main": "build/index.js",
"keywords": [
diff --git a/src/actor.js b/src/actor.js
index add05f79d..71930d69c 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -131,7 +131,7 @@ export const initializeEvents = () => {
* }
* ```
* For the list of the `APIFY_XXX` environment variables, see
- * {@link http://localhost/docs/actor.php#run-env-vars|Actor documentation}.
+ * <a href="http://localhost/docs/actor.php#run-env-vars" target="_blank">Actor documentation</a>.
* If some of the variables is not defined or is invalid, the corresponding value in the resulting object will be null.
*
* @returns {Object}
@@ -313,8 +313,9 @@ export const readyFreddy = () => {
* }
* }
* ```
- * Internally, the function calls the {@link https://www.apify.com/docs/api/v2#/reference/acts/runs-collection/run-act|Run act} API endpoint
- * and few others.
+ * Internally, the function calls the
+ * <a href="https://www.apify.com/docs/api/v2#/reference/acts/runs-collection/run-act" target="_blank">Run act</a>
+ * API endpoint and few others.
*
* Example usage:
*
diff --git a/src/index.js b/src/index.js
index 65c844077..825a345ae 100644
--- a/src/index.js
+++ b/src/index.js
@@ -27,9 +27,9 @@ if (!isProduction() || process.env[ENV_VARS.LOG_LEVEL] === 'DEBUG') log.isDebugM
* you can create acts without it.
*
* For more information about the Apify Actor platform, please go to
- * {@link https://www.apify.com/docs/actor|Actor documentation}.
+ * <a href="https://www.apify.com/docs/actor" target="_blank">Actor documentation</a>.
*
- * The source code of this package is available on {@link https://github.com/apifytech/apify-js|GitHub}.
+ * The source code of this package is available on <a href="https://github.com/apifytech/apify-js" target="_blank">GitHub</a>.
*
* <h2>Example usage</h2>
*
@@ -151,9 +151,9 @@ if (!isProduction() || process.env[ENV_VARS.LOG_LEVEL] === 'DEBUG') log.isDebugM
* By default, all asynchronous functions provided by this package return a promise.
* But Apify uses a <a href="http://bluebirdjs.com/" target="_blank">Bluebird</a>
* promise implementation so you can easily convert any function that returns a Promise
- * into callback style function. See <a href="http://bluebirdjs.com/docs/api/promise.promisify.html" target="_blank">
- * http://bluebirdjs.com/docs/api/promise.promisify.html
- * </a> for more information.
+ * into callback style function.
+ * See <a href="http://bluebirdjs.com/docs/api/promise.promisify.html" target="_blank">Bluebird documentation</a>
+ * for more information.
*
* <h2>Programmer's reference</h2>
*
diff --git a/src/puppeteer.js b/src/puppeteer.js
index ccb14ab0a..55a0e3625 100644
--- a/src/puppeteer.js
+++ b/src/puppeteer.js
@@ -8,7 +8,8 @@ import { newPromise } from './utils';
/**
* Launches headless Chrome using Puppeteer pre-configured to work with the Apify Actor platform.
* The function has the same argument and return value as `puppeteer.launch()`.
- * See {@link https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions|Puppeteer documentation} for more details.
+ * See <a href="https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions" target="_blank">
+ * Puppeteer documentation</a> for more details.
*
* The `launchPuppeteer()` function alters the following Puppeteer options:
*
@@ -19,15 +20,15 @@ import { newPromise } from './utils';
* <li>Takes the `proxyUrl` option, checks it and adds it to `args` as `--proxy-server=XXX`.
* If the proxy uses authentication, the function sets up an anonymous proxy HTTP
* to make the proxy work with headless Chrome. For more information, read the
- * {@link https://blog.apify.com/249a21a79212|blog post about proxy-chain library}.
+ * <a href="https://blog.apify.com/249a21a79212" target="_blank">blog post about proxy-chain library</a>.
* </li>
* <li>Adds `--no-sandbox` to `args` to enable running headless Chrome in a Docker container on the Apify Actor platform.</li>
* </ul>
*
- * To use this function, you need to have the {@link https://www.npmjs.com/package/puppeteer|puppeteer}
+ * To use this function, you need to have the <a href="https://www.npmjs.com/package/puppeteer" target="_blank">puppeteer</a>
* NPM package installed in your project.
* For example, you can use the `apify/actor-node-puppeteer` base Docker image for your act - see
- * {@link https://www.apify.com/docs/actor#base-images|documentation}
+ * <a href="https://www.apify.com/docs/actor#base-images" target="_blank">documentation</a>
* for more details.
*
* @param {Object} [opts] Optional settings passed to `puppeteer.launch()`. Additionally the object can contain the following fields:
diff --git a/src/utils.js b/src/utils.js
index 16273b93f..4a4347536 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -31,7 +31,7 @@ export const newClient = () => {
/**
* A default instance of the `ApifyClient` class provided
- * by the {@link https://www.apify.com/docs/sdk/apify-client-js/latest|apify-client} NPM package.
+ * by the <a href="https://www.apify.com/docs/sdk/apify-client-js/latest" target="_blank">apify-client</a> NPM package.
* The instance is created when the `apify` package is first imported
* and it is configured using the `APIFY_API_BASE_URL`, `APIFY_USER_ID` and `APIFY_TOKEN`
* environment variables.
diff --git a/src/webdriver.js b/src/webdriver.js
index 450992410..0cd9200ae 100644
--- a/src/webdriver.js
+++ b/src/webdriver.js
@@ -274,9 +274,10 @@ export const browse = (url, options) => {
/**
* Opens a new instance of Chrome web browser
- * controlled by {@link http://www.seleniumhq.org/projects/webdriver/|Selenium WebDriver}.
+ * controlled by <a href="http://www.seleniumhq.org/projects/webdriver/" target="_blank">Selenium WebDriver</a>.
* The result of the function is the new instance of the
- * {@link http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_WebDriver.html|WebDriver}
+ * <a href="http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_WebDriver.html" target="_blank">
+ * WebDriver</a>
* class.
*
* If the `APIFY_HEADLESS` environment variable is set to `1`, the function
@@ -284,9 +285,9 @@ export const browse = (url, options) => {
* in acts running on the Apify Actor cloud platform.
*
* To use this function, you need to have Google Chrome and
- * {@link https://sites.google.com/a/chromium.org/chromedriver/|ChromeDriver} installed in your environment.
+ * <a href="https://sites.google.com/a/chromium.org/chromedriver/" target="_blank">ChromeDriver</a> installed in your environment.
* For example, you can use the `apify/actor-node-chrome` base Docker image for your act - see
- * {@link https://www.apify.com/docs/actor#base-images|documentation}
+ * <a href="https://www.apify.com/docs/actor#base-images" target="_blank">documentation</a>
* for more details.
*
* @param {Object} [opts] Optional settings passed to `puppeteer.launch()`. Additionally the object can contain the following fields: