fix: show global keyword position (2/20) not slice position (1/19) in logs

This commit is contained in:
2026-03-06 02:47:39 +00:00
parent c01abe8884
commit 4a2b24d562
2 changed files with 4 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ async function main() {
}
const keywordStart = getKeywordStart('linkedin', search.name);
if (keywordStart > 0) console.log(` [${search.name}] resuming from keyword ${keywordStart + 1}/${search.keywords.length}`);
const effectiveSearch = { ...search, keywords: search.keywords.slice(keywordStart), filters: { ...search.filters, posted_within_days: lookbackDays } };
const effectiveSearch = { ...search, keywords: search.keywords.slice(keywordStart), keywordOffset: keywordStart, filters: { ...search.filters, posted_within_days: lookbackDays } };
let queryFound = 0, queryAdded = 0;
await searchLinkedIn(liBrowser.page, effectiveSearch, {
onPage: (pageJobs) => {