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
function load() {
const versions = document.querySelectorAll('.navbar .dropdown ul a');
const basePath = '';
const types = [`${basePath}/docs/next`, `${basePath}/docs`];
let i = 0;
for (const el of versions) {
const match = el.href.match(/\/docs\/(\d+\.\d+(\.\d+)?)$/) || el.href.match(/\/docs\/(\d+\.\d+(\.\d+)?)/);
if (!types[i++] && !match) {
continue;
}
const version = (types[i++] || match[0]).replace('/docs', '/api');
if (el.classList.contains('api-version-bound')) {
continue;
}
el.addEventListener('click', (e) => {
if (version && window.location.pathname.startsWith(`${basePath}/api`)) {
window.location.href = version;
e.preventDefault();
}
});
el.classList.add('api-version-bound');
}
}
setInterval(() => {
if (document.querySelectorAll('.navbar .dropdown ul a').length > 0) {
load();
}
}, 500);