Scrape Hacker News com 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”)

Continuar lendo