chore: update search scripts, extra sources and post drafts

Adds the one-off scripts accumulated across recent sessions, removes
temp scripts whose searches now live in config.ts as role-family
sweeps, and updates fetch-other.ts plus the LinkedIn post drafts.
This commit is contained in:
2026-08-27 09:03:05 +02:00
parent 3f5360f44c
commit b4957025b1
31 changed files with 2008 additions and 283 deletions
+29
View File
@@ -0,0 +1,29 @@
import { fetchJobs, isEnglishContent } from "../fetch.ts";
import type { SearchConfig } from "../config.ts";
const searches: SearchConfig[] = [
{ label: "Web Developer Switzerland (onsite/hybrid)", keywords: "Web Developer OR Full Stack Developer OR Frontend Developer OR Backend Developer", location: "Switzerland", workType: ["onsite", "hybrid"], timePosted: "month" },
{ label: "Web Developer Switzerland (remote)", keywords: "Web Developer OR Full Stack Developer OR Frontend Developer OR Backend Developer", location: "Switzerland", workType: ["remote"], timePosted: "month" },
];
const seen = new Set<string>();
const results: { title: string; company: string; location: string; link: string; search: string }[] = [];
for (const config of searches) {
console.log(`\n[${config.label}]`);
const jobs = await fetchJobs(config);
for (const job of jobs) {
if (seen.has(job.id)) continue;
seen.add(job.id);
process.stdout.write(` ${job.title} @ ${job.company} … `);
const ok = await isEnglishContent(job.id);
if (!ok) { console.log("dropped"); continue; }
console.log("ok");
results.push({ ...job, search: config.label });
}
}
console.log(`\n=== ${results.length} web developer jobs ===\n`);
for (const j of results) {
console.log(`${j.title} | ${j.company} | ${j.location} | ${j.link}`);
}