Enable Wellfound apply: fix missing apply_type, add submit verification
- Search now sets apply_type: 'wellfound' on discovered jobs (was missing, so applier silently skipped all Wellfound jobs) - Add Wellfound to DEFAULT_ENABLED_APPLY_TYPES (LinkedIn first, then Wellfound) - Sort platform processing order: linkedin → wellfound → external - Apply handler: add closed listing detection, submit verification, error handling on meta extraction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,7 @@ import {
|
||||
APPLY_RUN_TIMEOUT_MS, PER_JOB_TIMEOUT_MS
|
||||
} from './lib/constants.mjs';
|
||||
|
||||
const DEFAULT_ENABLED_APPLY_TYPES = ['easy_apply'];
|
||||
const DEFAULT_ENABLED_APPLY_TYPES = ['easy_apply', 'wellfound'];
|
||||
|
||||
const isPreview = process.argv.includes('--preview');
|
||||
|
||||
@@ -120,9 +120,12 @@ async function main() {
|
||||
byPlatform[platform].push(job);
|
||||
}
|
||||
|
||||
// Process each platform group
|
||||
// Process each platform group — LinkedIn first, then Wellfound, then external
|
||||
const platformOrder = ['linkedin', 'wellfound', 'external'];
|
||||
const sortedPlatforms = Object.entries(byPlatform)
|
||||
.sort((a, b) => (platformOrder.indexOf(a[0]) ?? 99) - (platformOrder.indexOf(b[0]) ?? 99));
|
||||
let timedOut = false;
|
||||
for (const [platform, platformJobs] of Object.entries(byPlatform)) {
|
||||
for (const [platform, platformJobs] of sortedPlatforms) {
|
||||
if (timedOut) break;
|
||||
console.log(`\n--- ${platform.toUpperCase()} (${platformJobs.length} jobs) ---\n`);
|
||||
let browser;
|
||||
|
||||
Reference in New Issue
Block a user