knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

letterbox

AppVeyor build status Travis build status

letterbox is a news article crawler from newsapi, and currents.

Usage

Setup your session.

letterbox_key("xxXxxX", "XxxXx")

Get some data.

articles <- letterbox::get_articles(
  q = "United Nations", 
  since = Sys.Date() - 7, 
  until = Sys.Date(), 
  language = "en",
  results = 100
)

knitr::kable(head(articles))

Installation

You can install the released version of letterbox from Github with:

install.packages("remotes")
remotes::install_github("news-r/letterbox")


news-r/letterbox documentation built on Feb. 24, 2020, 12:56 a.m.