get_comments: Hacker News nested comments

View source: R/api.R

get_commentsR Documentation

Hacker News nested comments

Description

Retrieves all comments under an item using Hacker News API

Usage

get_comments(item)

Arguments

item

item whose children (comments) will be retrieved

Value

dataframe of all comments under an item

Examples


story <- get_item_by_id(21499889)
comments <- get_comments(story)

# Convert to a tibble to improve formatting
# as comment content might long
tibble::as_tibble(comments)



hackeRnews documentation built on April 11, 2025, 6:10 p.m.