Scrape Hacker News with Node.JS
jsdom = require("jsdom")
jsdom.env
url: "http://news.ycombinator.com/"
scripts: ["http://code.jquery.com/jquery.js"]
done: (errors, window) ->
$ = window.$
$("td.title:not(:last) a").each ->
console.log $(this).text(), "\n", $(this).attr("href")
Written by Austin Turnage
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#