Add puppeteer-extra stealth plugin for Cloudflare bypass

The headless browser was being detected by Cloudflare and stuck on the
"Just a moment..." challenge page. Added puppeteer-extra with the stealth
plugin which patches browser fingerprinting to avoid bot detection. Also
added logic to wait for Cloudflare challenges to complete.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-21 21:07:51 -05:00
parent be1b2d9b6c
commit 9af18969f3
3 changed files with 516 additions and 12 deletions

View file

@ -19,7 +19,9 @@
"jsonwebtoken": "^9.0.2",
"node-cron": "^3.0.3",
"pg": "^8.11.3",
"puppeteer": "^22.0.0"
"puppeteer": "^22.0.0",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",