request-hn.js
✓ Published0🌍 Public
Aalessioalex
Last edited Nov 22, 2014
Created on Nov 22, 2014
This example scrapes the front page of Hacker News and prints a plain-text list of story titles and their links to the console. It uses the `request` library to fetch the HTML and `cheerio` to parse the DOM, selecting elements with the `.title a` selector. The data is collected into an array of objects with `text` and `href` properties, then logged via `console.log`. No visualization is rendered; the output is purely textual.
AI-generated description