get_best_stories | R Documentation |
Retrieves best stories using Hacker News API
get_best_stories(max_items = NULL)
max_items |
Maximum number of items to retrieve. If max_items = NULL, returns all available |
list of best stories
# get the best story on Hacker News
best_story <- get_best_stories(max_items = 1)
best_story
# get top 20 best stories on Hacker News
best_20_stories <- get_best_stories(max_items = 20)
best_20_stories
# get all best stories on Hacker News
best_stories <- get_best_stories()
best_stories
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.