powered by
Get headlines A helper function to get just the headlines of the feed
get_headlines(website = "news.ycombinator.com")
a url of a new source in the format "news.ycombinator.com"
a tibble containing the headlines contained in the feed
# NOT RUN { Sys.sleep(3) # adding a small time delay to avoid # simultaneous posts to the API get_headlines(website = "news.ycombinator.com") # }
Run the code above in your browser using DataLab