knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
letterbox is a news article crawler from newsapi, and currents.
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))
You can install the released version of letterbox from Github with:
install.packages("remotes") remotes::install_github("news-r/letterbox")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.