yphackernews
v1.0.1
Published
news.ycombinator.com parser
Downloads
4
Readme
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: [[email protected]](mailto:[email protected])