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
Fix hideconstructor in docs build [skip ci]
Ondra Urbanc43388b999fd
diff --git a/website/i18n/en.json b/website/i18n/en.jsonindex 8d58bc298..4a724131d 100644--- a/website/i18n/en.json+++ b/website/i18n/en.json@@ -26,6 +26,9 @@"api/dataset": {"title": "Dataset"},+ "api/exports": {+ "title": "exports"+ },"api/key-value-store": {"title": "KeyValueStore"},diff --git a/website/tools/build_docs.js b/website/tools/build_docs.jsindex e182e57dc..17bbbbfae 100644--- a/website/tools/build_docs.js+++ b/website/tools/build_docs.js@@ -165,18 +165,28 @@ const main = async () => {const typeFilesOutputDir = path.join(__dirname, '..', '..', 'docs', 'typedefs');/* get template data */- const templateData = await jsdoc2md.getTemplateData({ files: sourceFiles });+ let templateData = await jsdoc2md.getTemplateData({ files: sourceFiles });// handle examplesawait getExamplesFromRepo();+ const EMPTY = {};+/* reduce templateData to an array of class names */templateData.forEach((identifier) => {- if (identifier.kind === 'class' && !identifier.ignore) classNames.push(identifier.name);+ if (identifier.kind === 'class' && !identifier.ignore) {+ classNames.push(identifier.name);+ if (identifier.hideconstructor) {+ const idx = templateData.findIndex(i => i.id === `${identifier.name}()`);+ templateData[idx] = EMPTY;+ }+ }if (identifier.kind === 'namespace' && !identifier.ignore) namespaces.push(identifier.name);if (identifier.kind === 'typedef' && !identifier.ignore) typedefs.push(identifier.name);});+ templateData = templateData.filter(d => d !== EMPTY);+// build a map of all available entities for link generation.// Apify needs to be added manually since its actually a moduleconst entityMap = new Map();