Spaces:
Sleeping
Sleeping
Download normalize.py from dimdimm/crawling-datas: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/dimdimm/crawling-datas/resolve/main/normalize.py
- Command line
-
hf download hf://spaces/dimdimm/crawling-datas/normalize.py
-
curl -L -o normalize.py https://huggingface.co/spaces/dimdimm/crawling-datas/resolve/main/normalize.py
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 | |
| } |