Article: Scrape Hacker News newest posts
Simple parser for Hacker News newest posts. Just for fun, maybe it will be helpful for someone 😄
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[...]
- Fork it ( https://github.com/WScraping/hacker_news )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request