crawling-datas / normalize.py
dimdimm's picture
feat: upgrade scraper - multi keyword, --once mode, GitHub Actions workflow
e84ab4f
Raw History Blame Contribute Delete
501 Bytes
def normalize(job, source):
return {
"title": job.get("title"),
"company": job.get("company"),
"location": job.get("location", "Indonesia"),
"type": job.get("type", "Full-time"),
"salary": job.get("salary"),
"description": job.get("description") or job.get("title", ""),
"skills": job.get("skills", []),
"contact_info": job.get("contact_info"),
"url": job.get("url"),
"source": source,
"is_active": True
}