get_new_stories function

Hacker News newest stories

Hacker News newest stories

Retrieves newest stories using Hacker News API

get_new_stories(max_items = NULL)

Arguments

  • max_items: Maximum number of items to retrieve. If max_items = NULL, returns all available

Returns

list of new stories

Details

Parallel api requests can be enabled by running future::plan(future::multiprocess)

Examples

# get the newest story on Hacker News newest_story <- get_new_stories(max_items = 1) newest_story # get all new stories on Hacker News new_stories <- get_new_stories() new_stories
  • Maintainer: Ryszard Szymanski
  • License: MIT + file LICENSE
  • Last published: 2019-12-13