From 5adc5d1247cd56c700961182bb85915dc2b0adf5 Mon Sep 17 00:00:00 2001 From: Oscar Date: Thu, 11 Jun 2026 14:51:27 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(src/hh/scraper):=20=D1=83?= =?UTF-8?q?=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=20?= =?UTF-8?q?=D0=BC=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D0=BE=20=D0=BF=D1=80=D0=BE=D0=BF=D1=83=D1=81=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B4=D0=BE=2020=20=D0=B4=D0=BB=D1=8F=20=D1=83=D0=BB?= =?UTF-8?q?=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8=20=D0=B2=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=BD=D1=81=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hh/scraper.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hh/scraper.ts b/src/hh/scraper.ts index f767a76..ce96956 100644 --- a/src/hh/scraper.ts +++ b/src/hh/scraper.ts @@ -365,7 +365,7 @@ export async function applyToJobs( let appliedCount = 0 let consecutiveSkips = 0 - const MAX_CONSECUTIVE_SKIPS = 10 + const MAX_CONSECUTIVE_SKIPS = 20 for (const vacancy of vacancies) { if (appliedCount >= maxApplies) break @@ -392,7 +392,6 @@ export async function applyToJobs( if (!description) { results.skipped.push(ref) - appliedCount++ consecutiveSkips++ continue } @@ -400,7 +399,6 @@ export async function applyToJobs( const applyBtn = await page.$('[data-qa="vacancy-response-link-top"]') if (!applyBtn) { results.skipped.push(vacancy) - appliedCount++ consecutiveSkips++ continue } @@ -414,7 +412,6 @@ export async function applyToJobs( await relocationConfirm.click() if (await skipIfQuestionnaire(page, vacancy, ref, chatId, status, results)) { - appliedCount++ consecutiveSkips++ continue }