Scrapes the top stories on Hacker News' front page and outputs the story summaries as JSON
./hackernews --posts 3
Installed:
- Java 8 jre/jdk
- Maven
- linux or mac to run bash script
Library | Description |
---|---|
jackson-databind | Fast, reliable and simple library to serialize and de-serialize JSON objects |
htmlunit | Popular library for navigating website for testing/scraping purposes and parsing HTML dom |
hibernate-validation | Implementation of the Java validation standard. Allows easy validation of model object fields |
junit | Assists in writing unit tests |
args4j | A simple and well recieved library that allows command line input to be parsed and validated |