News for hackers. Stuff that matters.
Re:Show HN: my weekend project – browse jobs posted to HN by duck on Tuesday January 29, 2013 @05:15PM (#5136712)
Nice job on this, very handy. I'll link to this in my Hacker Newsletter as it seems like the other solutions have all been abandoned.
Re:Show HN: my weekend project – browse jobs posted to HN by pepr on Tuesday January 29, 2013 @05:51PM (#5136922)
Nice. BTW, there is a similar site: http://hnhiring.me/
Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @05:53PM (#5136937)
haha, doh! Kinda wish I had seen that earlier. On the other hand, building this was fun so maybe it's better I didn't.
Re:Show HN: my weekend project – browse jobs posted to HN by SanjayUttam on Tuesday January 29, 2013 @05:21PM (#5136751)
Just curious what technologies you are using? Also how quickly will this update on the 1st when a new thread is posted...again - just curious.

Great job! Much better than ctrl-f-ing my way through postings [just like you were doing].

Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @05:31PM (#5136816)
Thanks.

To answer your first question:

I'm using a custom scraper to get the results. I request the job pages through a random http proxy every so often, parse them, and update the cached json of all the comments. Getting a reliable, free, machine-friendly list of http proxies is harder than I thought. It was automatic, but the proxy provider I was using went down (doh!) so now I manually pull one from a list and trigger the scrape.

On the server I'm using a tiny express app (node.js) + redis to store hidden posts per use based on a cookie.

On the browser just a little bit of twitter boostrap + jquery + some custom UI helpers to generate the page. The searching and hide/show is done within the browser itself. I try to involve the server as little as possible.

To answer your second question:

It will update as soon as I kick off another scrape. I hope to re-enable the automation on this soon so it will only lag 10-15 minutes behind the actual page. Right now it could be quite a while (up to 12 hours).

Yeah! ctrl-f was tough. Especially as the comments spanned multiple pages and weren't sortable by date.

Re:Show HN: my weekend project – browse jobs posted to HN by shurane on Wednesday January 30, 2013 @02:34AM (#5138533)
Very awesome. Got any more projects up your sleeve?

Is it better to have an xml feed and load that instead of a JSON file? I wrote a scraper that dumped university courses at my school to a JSON file. I would load that JSON file and load the elements to a table. Mine was pretty dang slow.

But your site holds up fine.

Here's my site if you're at all interested: http://lo.leet.la/jola/bootstrap/docs/sunny.html#

Relvant JS code: http://lo.leet.la/jola/bootstrap/docs/assets/js/sunny.js

Re:Show HN: my weekend project – browse jobs posted to HN by typpo on Tuesday January 29, 2013 @06:20PM (#5137074)
Why is it necessary to use a proxy?
Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @06:24PM (#5137088)
hacker news black listed the ip address of my server after scraping 1 post's comments about once every fifteen minutes for a day. The best way I could think to get around this was an http proxy.
Re:Show HN: my weekend project – browse jobs posted to HN by etcet on Tuesday January 29, 2013 @10:40PM (#5137926)
You can use this link http://news.ycombinator.com/unban?ip=<your ip> to get your IP unbanned. I think it only works once though.
Re:Show HN: my weekend project – browse jobs posted to HN by SanjayUttam on Wednesday January 30, 2013 @05:54PM (#5142299)
Thanks for the info !
Re:Show HN: my weekend project – browse jobs posted to HN by habosa on Tuesday January 29, 2013 @07:16PM (#5137300)
Can I ask how you parsed job postings from the rest? I have a few programs that would greatly benefit from the ability to distinguish the jobs from normal posts. It doesn't seem that they are different in html...
Re:Show HN: my weekend project – browse jobs posted to HN by cj on Tuesday January 29, 2013 @07:33PM (#5137355)
I presume he's not parsing and instead simply manually entering the Who's Hiring threads and crawling those. If you look down the list you'll see a few entries that are not job posts.

Edit: And the YC job postings are located at http://news.ycombinator.com/jobs

Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @08:51PM (#5137625)
Correct - I'm just parsing all the comments and only showing the "top level" ones. I use this library I wrote: https://github.com/brianc/node-hacker-news-parser which builds a tree structure of the comments.
Re:Show HN: my weekend project – browse jobs posted to HN by dionidium on Tuesday January 29, 2013 @08:16PM (#5137514)
Job postings don't have an associated comment count
Re:Show HN: my weekend project – browse jobs posted to HN by mattdeboard on Tuesday January 29, 2013 @05:54PM (#5136943)
I have FlashBlock, and your site was totally blank until I let flash through. Do you have a flash element that blocks the rest of the page from loading?
Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @05:55PM (#5136946)
No flash what-so-ever on the page. That's very strange.
Re:Show HN: my weekend project – browse jobs posted to HN by ctruman on Tuesday January 29, 2013 @04:30PM (#5136434)
Simple and elegant way to see all job postings mentioned on HN. Search works really well and fast. Love it.
Re:Show HN: my weekend project – browse jobs posted to HN by xoail on Tuesday January 29, 2013 @04:52PM (#5136589)
I wish there could be filters. I could sort by city, type of job, pay etc. But a good start.
Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @04:58PM (#5136626)
Thanks. I thought about adding that. The posting text is pretty unstructured so I thought a search would get 80% of the way there. Tricky to extract city & type & pay from what is basically a wall of text. Before this I was doing a bunch of ctrl+f next next next searches on the original content. One thing you can do is click the little 'x' to right of a post to hide any post you're not interested in or already contacted. That will persist until you clear your cookies so you can kinda personalize it a bit.
Re:Show HN: my weekend project – browse jobs posted to HN by niggler on Tuesday January 29, 2013 @05:22PM (#5136754)
There are a few standard things you could look for, like two letters for state or SF or NY{,C}.
Re:Show HN: my weekend project – browse jobs posted to HN by Kliment on Tuesday January 29, 2013 @04:37PM (#5136482)
Maybe you could have it show all the "official" job posts as well
Re:Show HN: my weekend project – browse jobs posted to HN by sunwooz on Tuesday January 29, 2013 @06:19PM (#5137064)
Man, so many jobs in CA. Where are all the NY jobs being posted?
Re:Show HN: my weekend project – browse jobs posted to HN by whichdan on Tuesday January 29, 2013 @06:44PM (#5137163)
Re:Show HN: my weekend project – browse jobs posted to HN by dkroy on Tuesday January 29, 2013 @04:51PM (#5136582)
It shows up blank in both Safari & Chrome on my IPhone.
Re:Show HN: my weekend project – browse jobs posted to HN by memosanchez on Tuesday January 29, 2013 @04:53PM (#5136594)
Works fine for me on mobile safari.
Re:Show HN: my weekend project – browse jobs posted to HN by also_on_sunday on Tuesday January 29, 2013 @04:52PM (#5136588)
ah bummer - I will try to fix that asap.
Re:Show HN: my weekend project – browse jobs posted to HN by dkroy on Tuesday January 29, 2013 @07:13PM (#5137291)
I still only have iOS5 installed, so it may work with the updated OS and applications.
Re:Show HN: my weekend project – browse jobs posted to HN by niggler on Tuesday January 29, 2013 @04:53PM (#5136596)
At the very least you need a way to filter by location.
Re:Show HN: my weekend project – browse jobs posted to HN by mrsamaki on Tuesday January 29, 2013 @04:45PM (#5136540)
Not bad. Not bad at all.