yphackernews

1.0.1 • Public • Published

Node.js scraper for HackerNews

command line application that output news to STDOUT

Dependencies

  • cheerio - Implementation of core jQuery used for HTML parsing.
  • mocha - Test framework for node.js.
  • chai - BDD / TDD assertion library.

Installation

npm install yphackernews

How to use

hackernews --posts n

---posts n - required parametes where n number 0..100

At the moment scraper parse:

  • Title
  • Link URL
  • User
  • Points
  • Number of comments
  • Rank

Incorect data:

Storing in log.txt

Used output format

[
    {
        "title": "Web Scraping in 2016",
        "uri": "https://franciskim.co/2016/08/24/dont-need-no-stinking-api-web-scraping-2016-beyond/",
        "author": "franciskim",
        "points": 133,
        "comments": 80,
        "rank": 1
    },
    ...
]
 
## About me
Email me: [lyst@ukr.net](mailto:lyst@ukr.net)

Readme

Keywords

Package Sidebar

Install

npm i yphackernews

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • ~~