mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-04-25 00:36:32 +02:00
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>
37 lines
954 B
JSON
37 lines
954 B
JSON
{
|
|
"name": "priceghost-backend",
|
|
"version": "1.0.0",
|
|
"description": "PriceGhost price tracking API",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"db:init": "tsx src/config/init-db.ts"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.6.0",
|
|
"bcrypt": "^5.1.1",
|
|
"cheerio": "^1.0.0-rc.12",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.3.1",
|
|
"express": "^4.18.2",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"node-cron": "^3.0.3",
|
|
"pg": "^8.11.3",
|
|
"puppeteer": "^22.0.0",
|
|
"puppeteer-extra": "^3.3.6",
|
|
"puppeteer-extra-plugin-stealth": "^2.11.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^4.17.21",
|
|
"@types/jsonwebtoken": "^9.0.5",
|
|
"@types/node": "^20.10.0",
|
|
"@types/node-cron": "^3.0.11",
|
|
"@types/pg": "^8.10.9",
|
|
"tsx": "^4.6.0",
|
|
"typescript": "^5.3.2"
|
|
}
|
|
}
|