Puppeteer (chromium headless) is used to retrieve cloudflare cookies then request module is used to perform requests making this solution reliable but also pretty fast.
npm install cloudflare-scraper puppeteer
-
hCaptcha bypass
-
stormwall bypass
const cloudflareScraper = require('cloudflare-scraper');
(async () => {
try {
const response = await cloudflareScraper.get('https://cloudflare-url.com');
console.log(response);
} catch (error) {
console.log(error);
}
})();
TODO (same api as request package)
- documentation