Jobscraper Pipeline
Instructions for Oh My Pi (OMP) Session:
When this skill is invoked, execute the automated job search pipeline below.
It fetches fresh job postings (< 24 hours old) from LinkedIn, Indeed, Arbeitnow, Xing, Stepstone, Wellfound, EU Remote Jobs, and ATS Direct (Greenhouse/SmartRecruiters/Ashby), applies Germany-only location and working-student city rules, removes exact URL repeats from every earlier dated export, and outputs sortable CSV + XLSX files. Same-day reruns preserve eligible existing rows.
Execution
Step 1: Scrape (bash)
cd /home/sagar/Skills/Jobscraper && python3 apify_job_search.py
Step 2: Verify (OMP eval — typed JD judgment)
verify_jobs.run_verification() is asynchronous and requires OMP's typed
judge_batch API. Do not run python3 verify_jobs.py; standalone mode cannot
provide the judge and exits with an explicit instruction to use OMP eval.
Foreign/unknown locations and exact URLs present in earlier dated exports are
filtered before platform requests or JD judgment. Only final, full descriptions
(including descriptions acquired by platform verification) are judged. Missing
or failed judgments go to Needs Review, never to To Apply.
The separate already-applied matcher still uses completion() for scraped-job
versus tracker pairs. Run 2a, 2b, then 2c in the same OMP eval session.
Step 2a: Prepare already-applied candidates (Python eval)
import site, sys
from pathlib import Path
from datetime import datetime
if site.getusersitepackages() not in sys.path:
sys.path.insert(0, site.getusersitepackages())
skill_dir = Path("/home/sagar/Skills/Jobscraper")
if str(skill_dir) not in sys.path:
sys.path.insert(0, str(skill_dir))
from applied_check import prepare_match_input
csv_path = (
skill_dir / "Job Search" / datetime.now().strftime("%Y-%m-%d")
/ f'Job_Search_{datetime.now().strftime("%b_%d_%Y").replace("_0", "_")}.csv'
)
print(f"[*] Preparing tracker matches for {csv_path}")
count = prepare_match_input(str(csv_path))
print(f"[*] Prepared {count} already-applied candidate pairs")
Step 2b: Classify already-applied pairs (JavaScript eval)
This step does not classify German or experience requirements. JD judgment is
performed by judge_batch in Step 2c.
import { readFileSync, writeFileSync } from 'fs';
const input = JSON.parse(readFileSync('/tmp/already_applied_input.json', 'utf-8'));
const BATCH = 10;
const PROMPT = `Determine whether each SCRAPED job is the same company and role as
the TRACKER entry. Ignore legal suffixes, location qualifiers, brand/legal entity
variants, seniority/gender formatting, and German-English title translations.
Same URL is a match even with tracking parameters.
Not a match: different roles at the same company, different companies sharing a
word, or jobs with company "Unknown" unless the URLs match.
Pairs:
{pairs}
Reply with a JSON array, one element per pair:
[{"id": 1, "match": true, "reason": "same company and role"},
{"id": 2, "match": false, "reason": "different position"}]`;
const matches = [];
for (let i = 0; i < input.length; i += BATCH) {
const batch = input.slice(i, i + BATCH);
const pairs = batch.map(p =>
`Pair ${p.id}: SCRAPED ${p.scraped_company} / ${p.scraped_title} / ${p.scraped_url}; ` +
`TRACKER ${p.tracker_company} / ${p.tracker_title} / ${p.tracker_url}`
).join('\n');
const prompt = PROMPT.replace('{pairs}', pairs);
for (let attempt = 0; attempt <= 3; attempt++) {
try {
const handle = await completion(prompt, 'smol');
const raw = await handle.wait();
const fence = String.fromCharCode(96).repeat(3);
const json = raw
.replace(new RegExp('^' + fence + '(?:json)?\\s*', 'i'), '')
.replace(new RegExp('\\s*' + fence + '\\s*$'), '').trim();
const results = JSON.parse(json);
for (const result of results) {
const pair = batch.find(p => p.id === result.id);
if (pair && result.match === true) {
matches.push({
company: pair.scraped_company,
title: pair.scraped_title,
url: pair.scraped_url
});
}
}
break;
} catch (error) {
if (attempt < 3 && String(error).includes('429')) {
await new Promise(resolve => setTimeout(resolve, (attempt + 1) * 6000));
} else {
break;
}
}
}
}
writeFileSync('/tmp/already_applied_matches.json', JSON.stringify(matches));
console.log(`Already-applied: ${matches.length} matches from ${input.length} candidate pairs`);
Step 2c: Full verification (Python eval)
The typed judge sees each eligible row's full final description and returns
independent German and experience choices. Required C1/C2/fluent/native/
verhandlungssicher and standalone sehr gute Deutschkenntnisse are C1+;
required B1/B2 and the conjunctive sehr gute Deutsch- und Englischkenntnisse
convention are allowed unless an explicit C1+ level is stated. Experience uses
the required minimum (lower bound of a range); optional experience does not
disqualify. Use the user site-packages path for openpyxl if the eval kernel
does not include it.
import site, sys
from pathlib import Path
from datetime import datetime
if site.getusersitepackages() not in sys.path:
sys.path.insert(0, site.getusersitepackages())
skill_dir = Path("/home/sagar/Skills/Jobscraper")
if str(skill_dir) not in sys.path:
sys.path.insert(0, str(skill_dir))
import verify_jobs
csv_path = (
skill_dir / "Job Search" / datetime.now().strftime("%Y-%m-%d")
/ f'Job_Search_{datetime.now().strftime("%b_%d_%Y").replace("_0", "_")}.csv'
)
verify_jobs.judge_batch = judge_batch
await verify_jobs.run_verification(csv_path, force=True)
Dependencies: requests, openpyxl, beautifulsoup4, tqdm.
Install: pip install requests openpyxl beautifulsoup4 tqdm.
Context
- Candidate Name: Sagar Marthandan
- Base Location: Kiel, Germany
- Base Resumes Directory:
/home/sagar/Documents/YAML-CV/skills/okf-cv/okf/base_files
- Portfolio Directory:
/home/sagar/Documents/YAML-CV/skills/okf-cv/okf/portfolio
- Target Output Directory:
/home/sagar/Skills/Jobscraper/Job Search
- Cost: $0.00/run (all platforms free — no Apify)
- Script:
/home/sagar/Skills/Jobscraper/apify_job_search.py
- Full documentation:
/home/sagar/Skills/Jobscraper/apify_job_search.md
Search Criteria
- Freshness Window: Strictly posted within the last 24 hours.
- Target Platforms:
- LinkedIn (free HTML scraping, no Apify, $0)
- Indeed (free GraphQL API, $0)
- Arbeitnow (free API, no Apify)
- Xing (free HTML scraping via plain
requests, no Apify)
- Stepstone (free HTML scraping via plain
requests, no Apify)
- Wellfound (free HTML scraping, SSR role pages + JSON-LD detail pages, $0)
- EU Remote Jobs (free WordPress REST API, full descriptions, $0)
- ATS Direct (Greenhouse/SmartRecruiters/Ashby public APIs, free)
- Title Relevance Filter: Universal post-filter
is_relevant_title() rejects any job whose title doesn't contain at least one data/analytics/AI/SQL/Python keyword.
- Role Types & Location Constraints:
- Full-Time / Part-Time / Entry-Level / Junior (0–2 yrs exp): Germany-wide.
- Internships (Praktikum / Internship): Germany-wide.
- Working Student (Werkstudent / Working Student): Strictly ONLY Hamburg and Kiel.
- Experience Ceiling: Strict <= 2 years. Rejects Senior, Lead, Principal, Staff, Manager, Head, Architect, Director titles.
- Target Role Profiles (10 core roles):
- Data Engineer, Analytics Engineer
- Data Analyst
- AI Engineer, Machine Learning Engineer
- Business Analyst
- SQL Developer
- Praktikum Data, Werkstudent Data, Werkstudent Business Intelligence
- Cross-Run Deduplication: After within-run dedup, remove exact stable posting URLs seen in any earlier dated export; do not fuzzy-match companies or titles across dates. Exclude current/future folders from history, and preserve eligible current-date rows on reruns.
Output
Files written to /home/sagar/Skills/Jobscraper/Job Search/YYYY-MM-DD/:
Job_Search_<Month>_<Day>_<Year>.csv — UTF-8 BOM, sortable
Job_Search_<Month>_<Day>_<Year>.json
Job_Search_<Month>_<Day>_<Year>.xlsx — autofilter + clickable links
JOB_OPENINGS_LAST_24H.md — markdown summary
Step 2 Output (verify)
Job_Search_<Month>_<Day>_<Year>_verified.xlsx — To Apply plus conditional Reposted, Staffing Companies, Already Applied, Needs Review, and Previously Seen sheets. Missing or failed JD judgments remain in Needs Review; older exact URL repeats are excluded before platform verification and may be listed under Previously Seen. Hyperlink structure is checked for every sheet; HTTP sampling excludes Previously Seen URLs.
All 8 platforms are free. Descriptions arrive from step 1 and may be extended during platform verification. The verification step uses OMP judge_batch on each eligible row's full final description; it does not use completion() or truncated JD excerpts for German/experience classification.
1---2name: jobscraper3description: >-4 Use when the user wants to run the automated job search pipeline. Fetches fresh job postings (< 24 hours old) from LinkedIn, Indeed, Arbeitnow, Xing, Stepstone, Wellfound, EU Remote Jobs, and ATS Direct for data/AI/analytics roles in Germany; filters experience (<= 2 years), Germany location (working student: Hamburg & Kiel only), and title relevance; deduplicates by exact stable posting URL across all earlier dated exports; and exports CSV/XLSX/JSON/MD. Trigger on keywords like "job search", "job scraper", "find jobs", "scrape jobs", "job postings", "fresh jobs", "data jobs germany", "linkedin jobs", "indeed jobs", "arbeitnow", "xing jobs", "stepstone jobs", "wellfound jobs", "remote jobs", "job pipeline", "run job search".5dependencies: python>=3.10, requests, openpyxl, beautifulsoup4, tqdm6metadata:7 source: https://skillmd.com/skills/sagarmarthandan/jobscraper8---910# Jobscraper Pipeline1112> **Instructions for Oh My Pi (OMP) Session:**13> When this skill is invoked, execute the automated job search pipeline below.14> It fetches fresh job postings (< 24 hours old) from **LinkedIn**, **Indeed**, **Arbeitnow**, **Xing**, **Stepstone**, **Wellfound**, **EU Remote Jobs**, and **ATS Direct** (Greenhouse/SmartRecruiters/Ashby), applies Germany-only location and working-student city rules, removes exact URL repeats from every earlier dated export, and outputs sortable **CSV + XLSX** files. Same-day reruns preserve eligible existing rows.1516## Execution1718### Step 1: Scrape (bash)1920```bash21cd /home/sagar/Skills/Jobscraper && python3 apify_job_search.py22```2324### Step 2: Verify (OMP eval — typed JD judgment)2526`verify_jobs.run_verification()` is asynchronous and requires OMP's typed27`judge_batch` API. Do not run `python3 verify_jobs.py`; standalone mode cannot28provide the judge and exits with an explicit instruction to use OMP eval.29Foreign/unknown locations and exact URLs present in earlier dated exports are30filtered before platform requests or JD judgment. Only final, full descriptions31(including descriptions acquired by platform verification) are judged. Missing32or failed judgments go to **Needs Review**, never to To Apply.3334The separate already-applied matcher still uses `completion()` for scraped-job35versus tracker pairs. Run 2a, 2b, then 2c in the same OMP eval session.3637#### Step 2a: Prepare already-applied candidates (Python eval)3839```python40import site, sys41from pathlib import Path42from datetime import datetime4344if site.getusersitepackages() not in sys.path:45 sys.path.insert(0, site.getusersitepackages())4647skill_dir = Path("/home/sagar/Skills/Jobscraper")48if str(skill_dir) not in sys.path:49 sys.path.insert(0, str(skill_dir))5051from applied_check import prepare_match_input5253csv_path = (54 skill_dir / "Job Search" / datetime.now().strftime("%Y-%m-%d")55 / f'Job_Search_{datetime.now().strftime("%b_%d_%Y").replace("_0", "_")}.csv'56)57print(f"[*] Preparing tracker matches for {csv_path}")58count = prepare_match_input(str(csv_path))59print(f"[*] Prepared {count} already-applied candidate pairs")60```6162#### Step 2b: Classify already-applied pairs (JavaScript eval)6364This step does not classify German or experience requirements. JD judgment is65performed by `judge_batch` in Step 2c.6667```javascript68import { readFileSync, writeFileSync } from 'fs';6970const input = JSON.parse(readFileSync('/tmp/already_applied_input.json', 'utf-8'));71const BATCH = 10;72const PROMPT = `Determine whether each SCRAPED job is the same company and role as73the TRACKER entry. Ignore legal suffixes, location qualifiers, brand/legal entity74variants, seniority/gender formatting, and German-English title translations.75Same URL is a match even with tracking parameters.76Not a match: different roles at the same company, different companies sharing a77word, or jobs with company "Unknown" unless the URLs match.7879Pairs:80{pairs}8182Reply with a JSON array, one element per pair:83[{"id": 1, "match": true, "reason": "same company and role"},84 {"id": 2, "match": false, "reason": "different position"}]`;8586const matches = [];87for (let i = 0; i < input.length; i += BATCH) {88 const batch = input.slice(i, i + BATCH);89 const pairs = batch.map(p =>90 `Pair ${p.id}: SCRAPED ${p.scraped_company} / ${p.scraped_title} / ${p.scraped_url}; ` +91 `TRACKER ${p.tracker_company} / ${p.tracker_title} / ${p.tracker_url}`92 ).join('\n');93 const prompt = PROMPT.replace('{pairs}', pairs);94 for (let attempt = 0; attempt <= 3; attempt++) {95 try {96 const handle = await completion(prompt, 'smol');97 const raw = await handle.wait();98 const fence = String.fromCharCode(96).repeat(3);99 const json = raw100 .replace(new RegExp('^' + fence + '(?:json)?\\s*', 'i'), '')101 .replace(new RegExp('\\s*' + fence + '\\s*$'), '').trim();102 const results = JSON.parse(json);103 for (const result of results) {104 const pair = batch.find(p => p.id === result.id);105 if (pair && result.match === true) {106 matches.push({107 company: pair.scraped_company,108 title: pair.scraped_title,109 url: pair.scraped_url110 });111 }112 }113 break;114 } catch (error) {115 if (attempt < 3 && String(error).includes('429')) {116 await new Promise(resolve => setTimeout(resolve, (attempt + 1) * 6000));117 } else {118 break;119 }120 }121 }122}123writeFileSync('/tmp/already_applied_matches.json', JSON.stringify(matches));124console.log(`Already-applied: ${matches.length} matches from ${input.length} candidate pairs`);125```126127#### Step 2c: Full verification (Python eval)128129The typed judge sees each eligible row's full final description and returns130independent German and experience choices. Required C1/C2/fluent/native/131verhandlungssicher and standalone *sehr gute Deutschkenntnisse* are C1+;132required B1/B2 and the conjunctive *sehr gute Deutsch- und Englischkenntnisse*133convention are allowed unless an explicit C1+ level is stated. Experience uses134the required minimum (lower bound of a range); optional experience does not135disqualify. Use the user site-packages path for `openpyxl` if the eval kernel136does not include it.137138```python139import site, sys140from pathlib import Path141from datetime import datetime142143if site.getusersitepackages() not in sys.path:144 sys.path.insert(0, site.getusersitepackages())145146skill_dir = Path("/home/sagar/Skills/Jobscraper")147if str(skill_dir) not in sys.path:148 sys.path.insert(0, str(skill_dir))149150import verify_jobs151152csv_path = (153 skill_dir / "Job Search" / datetime.now().strftime("%Y-%m-%d")154 / f'Job_Search_{datetime.now().strftime("%b_%d_%Y").replace("_0", "_")}.csv'155)156verify_jobs.judge_batch = judge_batch157await verify_jobs.run_verification(csv_path, force=True)158```159160Dependencies: `requests`, `openpyxl`, `beautifulsoup4`, `tqdm`.161Install: `pip install requests openpyxl beautifulsoup4 tqdm`.162163## Context164165- **Candidate Name:** Sagar Marthandan166- **Base Location:** Kiel, Germany167- **Base Resumes Directory:** `/home/sagar/Documents/YAML-CV/skills/okf-cv/okf/base_files`168- **Portfolio Directory:** `/home/sagar/Documents/YAML-CV/skills/okf-cv/okf/portfolio`169- **Target Output Directory:** `/home/sagar/Skills/Jobscraper/Job Search`170- **Cost:** $0.00/run (all platforms free — no Apify)171- **Script:** `/home/sagar/Skills/Jobscraper/apify_job_search.py`172- **Full documentation:** `/home/sagar/Skills/Jobscraper/apify_job_search.md`173174## Search Criteria1751761. **Freshness Window:** Strictly posted within the **last 24 hours**.1772. **Target Platforms:**178 - **LinkedIn** (free HTML scraping, no Apify, $0)179 - **Indeed** (free GraphQL API, $0)180 - **Arbeitnow** (free API, no Apify)181 - **Xing** (free HTML scraping via plain `requests`, no Apify)182 - **Stepstone** (free HTML scraping via plain `requests`, no Apify)183 - **Wellfound** (free HTML scraping, SSR role pages + JSON-LD detail pages, $0)184 - **EU Remote Jobs** (free WordPress REST API, full descriptions, $0)185 - **ATS Direct** (Greenhouse/SmartRecruiters/Ashby public APIs, free)1863. **Title Relevance Filter:** Universal post-filter `is_relevant_title()` rejects any job whose title doesn't contain at least one data/analytics/AI/SQL/Python keyword.1874. **Role Types & Location Constraints:**188 - **Full-Time / Part-Time / Entry-Level / Junior (0–2 yrs exp):** Germany-wide.189 - **Internships (*Praktikum* / *Internship*):** Germany-wide.190 - **Working Student (*Werkstudent* / *Working Student*):** Strictly **ONLY Hamburg and Kiel**.1915. **Experience Ceiling:** Strict <= 2 years. Rejects Senior, Lead, Principal, Staff, Manager, Head, Architect, Director titles.1926. **Target Role Profiles (10 core roles):**193 1. Data Engineer, Analytics Engineer194 2. Data Analyst195 3. AI Engineer, Machine Learning Engineer196 4. Business Analyst197 5. SQL Developer198 6. Praktikum Data, Werkstudent Data, Werkstudent Business Intelligence1997. **Cross-Run Deduplication:** After within-run dedup, remove exact stable posting URLs seen in any earlier dated export; do not fuzzy-match companies or titles across dates. Exclude current/future folders from history, and preserve eligible current-date rows on reruns.200201## Output202203Files written to `/home/sagar/Skills/Jobscraper/Job Search/YYYY-MM-DD/`:204- `Job_Search_<Month>_<Day>_<Year>.csv` — UTF-8 BOM, sortable205- `Job_Search_<Month>_<Day>_<Year>.json`206- `Job_Search_<Month>_<Day>_<Year>.xlsx` — autofilter + clickable links207- `JOB_OPENINGS_LAST_24H.md` — markdown summary208209### Step 2 Output (verify)210211- `Job_Search_<Month>_<Day>_<Year>_verified.xlsx` — To Apply plus conditional Reposted, Staffing Companies, Already Applied, Needs Review, and Previously Seen sheets. Missing or failed JD judgments remain in Needs Review; older exact URL repeats are excluded before platform verification and may be listed under Previously Seen. Hyperlink structure is checked for every sheet; HTTP sampling excludes Previously Seen URLs.212213All 8 platforms are free. Descriptions arrive from step 1 and may be extended during platform verification. The verification step uses OMP `judge_batch` on each eligible row's full final description; it does not use `completion()` or truncated JD excerpts for German/experience classification.