Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 867 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 867 Bytes

Hacker news parser

Article: Scrape Hacker News newest posts

Simple parser for Hacker News newest posts. Just for fun, maybe it will be helpful for someone 😄

Usage

Very simple:

parser = Parsers::HackerNews::NewLinks.new
parser.parse_links(nil, 5) # it mean: we parse only 5 pages without needed id
parser.data #=> Array[..]

###############################################################
parser = Parsers::HackerNews::Jobs.new
parser.parse_links(nil, 5) #parse 5 pages
parser.data #=> Array[...]

Contributing

  1. Fork it ( https://github.com/WScraping/hacker_news )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request