6 ms·
Hey, a friendly reminder. I’m parsing the thread, all job offers added here are also available on the map on https://whoishiring.io https://whoishiring.io or j
by xando 10y ago
Hey, a friendly reminder. I’m parsing the thread, all job offers added here are also available on the map on
https://whoishiring.io https://whoishiring.io
or just HN items
https://whoishiring.io/search/36.0440/-90.8984/4?source=hn https://whoishiring.io/search/36.0440/-90.8984/4?source=hn
If you post here, please use the below format to help me with parsing. If you won’t, no worries, I will do my best to get all the things right.
1) {company} | {job title} | {locations} | {attrs: ONSITE, REMOTE, INTERNS, VISA, SALARY, company-url}
Google | Software Developer | SF | VISA https://google.com
DuckDuckGo | Software Developer | Paoli PA | REMOTE, VISA, SALARY:100k-120k
Facebook | Web-developer | Zurich | SALARY:120k CHF
Google | Site Reliability Engineer | London | SALARY:120k GBP, VISA, REMOTE
or
2) {company} | {job title} | {location}
Google | Site Reliability Engineer | Sydney
Facebook | Web-developer | Zurich
I’m using this regex to test the firstline, you can test it here https://regex101.com/r/relwQD/3 https://regex101.com/r/relwQD/3
\s*(?P<company>[^|]+?)\s*\|\s*(?P<title>[^|]+?)\s*\|\s*(?P<locations>[^|]+?)\s*(?:\|\s*(?P<attrs>.+))?$
NEW THING. There were requests for salary, so since this edition attrs section will handle salary as well. Check bellow for the regex.
SALARY:(?P<salary_min>\d+(?:k|K)?)(?:\s*\-\s*(?P<salary_max>\d+(?:k|K)?)?)?(?:\s?(?P<currency>[A-Z]{3}))?
and you can test it as well https://regex101.com/r/SRWkMz/2/ https://regex101.com/r/SRWkMz/2/
- NSAID 10y agoIt looks like you might be picking up the word "remote" from descriptions instead of the heading and then incorrectly showing those jobs as remote positions. For example, https://news.ycombinator.com/item?id=14023471 https://news.ycombinator.com/item?id=14023471 https://whoishiring.io/s/hn14023471 https://whoishiring.io/s/hn14023471
- xando 10y agoThanks for letting me know, fixed.
- dorfsmay 10y agoHave you fought of setting up a form so people can submit through the form and always have the format right (hard part might be making it post on their behalf).
- Bahamut 10y agoEven better would be a tool to generate the text to post on HN, while letting the user post it - low effort, and standardizes things