1.0.1 • Published 8 years ago

yphackernews v1.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

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)