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
Add examples to sidebar and some other stuff (#714) [skip ci]
Ondra Urban59323e05cccc
diff --git a/website/core/Footer.js b/website/core/Footer.jsindex edac09e91..163f39da3 100644--- a/website/core/Footer.js+++ b/website/core/Footer.js@@ -39,7 +39,7 @@ class Footer extends React.Component {<a href={this.docUrl('guides/motivation', this.props.language)}>Guide</a>- <a href={this.docUrl('examples/puppeteer-crawler', this.props.language)}>+ <a href={this.docUrl('examples/crawl-multiple-urls', this.props.language)}>Examples</a><a href={this.docUrl('api/apify', this.props.language)}>diff --git a/website/i18n/en.json b/website/i18n/en.jsonindex 4a724131d..34dec73f3 100644--- a/website/i18n/en.json+++ b/website/i18n/en.json@@ -29,6 +29,9 @@"api/exports": {"title": "exports"},+ "api/global-cache": {+ "title": "GlobalCache"+ },"api/key-value-store": {"title": "KeyValueStore"},@@ -38,6 +41,9 @@"api/log": {"title": "utils.log"},+ "api/proxy-configuration": {+ "title": "ProxyConfiguration"+ },"api/pseudo-url": {"title": "PseudoUrl"},@@ -254,6 +260,12 @@"typedefs/prepare-request-inputs": {"title": "PrepareRequestInputs"},+ "typedefs/proxy-configuration-options": {+ "title": "ProxyConfigurationOptions"+ },+ "typedefs/proxy-info": {+ "title": "ProxyInfo"+ },"typedefs/puppeteer-crawler-options": {"title": "PuppeteerCrawlerOptions"},@@ -326,9 +338,9 @@},"categories": {"Guide": "Guide",+ "Examples": "Examples","API Reference": "API Reference",- "Type Definitions": "Type Definitions",- "Examples": "Examples"+ "Type Definitions": "Type Definitions"}},"pages-strings": {diff --git a/website/pages/en/index.js b/website/pages/en/index.jsindex ac24aaaf5..37ce27887 100755--- a/website/pages/en/index.js+++ b/website/pages/en/index.js@@ -84,7 +84,7 @@ class HomeSplash extends React.Component {<PromoSection><Button href="#try">Try It Out</Button><Button href={docUrl('guides/getting-started', language)}>Learn the Basics</Button>- <Button href={docUrl('examples/puppeteer-crawler', language)}>See Examples</Button>+ <Button href={docUrl('examples/crawl-multiple-urls', language)}>See Examples</Button><Button href='https://apify.typeform.com/to/eV6Rqb' target='_blank'>Give Feedback</Button></PromoSection></div>diff --git a/website/sidebars.json b/website/sidebars.jsonindex 447fd62a9..2983b1cad 100644--- a/website/sidebars.json+++ b/website/sidebars.json@@ -11,6 +11,29 @@"guides/type-script-actor","guides/puppeteer-live-view"],+ "Examples": [+ "examples/accept-user-input",+ "examples/add-data-to-dataset",+ "examples/basic-crawler",+ "examples/call-actor",+ "examples/capture-screenshot",+ "examples/cheerio-crawler",+ "examples/crawl-all-links",+ "examples/crawl-multiple-urls",+ "examples/crawl-relative-links",+ "examples/crawl-single-url",+ "examples/crawl-sitemap",+ "examples/crawl-some-links",+ "examples/forms",+ "examples/handle-broken-links",+ "examples/map-and-reduce",+ "examples/puppeteer-crawler",+ "examples/puppeteer-recursive-crawl",+ "examples/puppeteer-sitemap",+ "examples/puppeteer-with-proxy",+ "examples/screenshots",+ "examples/synchronous-run"+ ],"API Reference": ["api/apify",{@@ -154,30 +177,5 @@]}]- },- "examples": {- "Examples": [- "examples/accept-user-input",- "examples/add-data-to-dataset",- "examples/basic-crawler",- "examples/call-actor",- "examples/capture-screenshot",- "examples/cheerio-crawler",- "examples/crawl-all-links",- "examples/crawl-multiple-urls",- "examples/crawl-relative-links",- "examples/crawl-single-url",- "examples/crawl-sitemap",- "examples/crawl-some-links",- "examples/forms",- "examples/handle-broken-links",- "examples/map-and-reduce",- "examples/puppeteer-crawler",- "examples/puppeteer-recursive-crawl",- "examples/puppeteer-sitemap",- "examples/puppeteer-with-proxy",- "examples/screenshots",- "examples/synchronous-run"- ]}}\ No newline at end of filediff --git a/website/siteConfig.js b/website/siteConfig.jsindex c0e8d8670..6d02ab33d 100644--- a/website/siteConfig.js+++ b/website/siteConfig.js@@ -47,7 +47,7 @@ const siteConfig = {headerLinks: [{ search: true },{ doc: 'guides/motivation', label: 'Guide' },- { doc: 'examples/accept-user-input', label: 'Examples' },+ { doc: 'examples/crawl-multiple-urls', label: 'Examples' },{ doc: 'api/apify', label: 'API Reference' },{ href: repoUrl, label: 'GitHub' },// { page: 'help', label: 'Help' },diff --git a/website/tools/build_docs.js b/website/tools/build_docs.jsindex 17bbbbfae..0ca7bd11b 100644--- a/website/tools/build_docs.js+++ b/website/tools/build_docs.js@@ -153,7 +153,7 @@ async function buildExamples(exampleLinks) {async function addExamplesToSidebars(examples) {console.log('Saving examples to sidebars.json');- sidebars.examples = { Examples: examples };+ sidebars.docs.Examples = examples;fs.writeFileSync(path.join(__dirname, '..', 'sidebars.json'), JSON.stringify(sidebars, null, 4));}