Skip to content

AaronFoltz/node-hackernews

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Node.js Wrapper API for HackerNews

Dependencies

Scraper

  • Install this module using npm install scraper

How to use

Gather the posts from the front page

hackernews.aaronfoltz.com/get OR http://falling-lightning-490.herokuapp.com/get

Gather the posts from the desired page

hackernews.aaronfoltz.com/get?page=# OR http://falling-lightning-490.herokuapp.com/get?page=# Where # is the desired page number

  • A pure JSON implementation of the front page information will be returned. If you access this using a web browser, it will ask you to download a file containing the JSON. If using this option, you will notice that the JSON is prettified using JSON.stringify using tabs.

At the moment, you can get the:

  • Rank
  • Title
  • Link URL
  • Points
  • User
  • User Profile URL
  • Posted Time
  • Number of comments
  • Comment URL

About me

Email me: aaron@aaronfoltz.com

Follow me: @Aaron_Foltz

Visit me: Aaron Foltz

About

Node.js API Wrapper for HackerNews

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published