Access online newspapers information.
You can install the released version of papers Github with:
# install.packages("remotes")
remotes::install_github("news-r/papers")
You can either use get_regions
and get_papers
to get the latest data or you can use the papers
dataset which should include all newspapers worldwide (at least the major ones).
data("papers", package = "papers")
head(papers)
#> newspaper
#> 1 Afghan Daily
#> 2 Afghanistan Times
#> 3 Afghanistan.ru -
#> 4 Benawa.com
#> 5 Inter Press Service - Afghanistan
#> 6 IRIN Afghanistan
#> link region
#> 1 https://wn.com/Afghan_daily Afghanistan
#> 2 https://afghanistantimes.af/ Afghanistan
#> 3 https://www.farsi.ru/ Afghanistan
#> 4 https://www.benawa.com/ Afghanistan
#> 5 https://www.ipsnews.net/ Afghanistan
#> 6 https://www.irinnews.org/asia/afghanistan Afghanistan
library(papers)
# get the list of regions available
regions <- get_regions()
#> No encoding supplied: defaulting to UTF-8.
#> ℹ 214 Countries
# get papers from a specific region
(papers <- get_papers(regions, "Belgium"))
#> No encoding supplied: defaulting to UTF-8.
#> # A tibble: 13 x 3
#> newspaper link region
#> <chr> <chr> <chr>
#> 1 De Standaard https://www.standaard.be/ Belgium
#> 2 De Tijd https://www.tijd.be/politiek_en_economie/ Belgium
#> 3 DeMorgen https://www.demorgen.be/ Belgium
#> 4 Gazet van Antwerpen https://www.gva.be/ Belgium
#> 5 Het Belang van Limburg https://www.hbvl.be/ Belgium
#> 6 Het Laatste Nieuws https://www.hln.be Belgium
#> 7 Het Nieuwsblad https://www.nieuwsblad.be/ Belgium
#> 8 Het Volk https://www.nieuwsblad.be/?ref=hv& Belgium
#> 9 L'Echo https://www.lecho.be/home Belgium
#> 10 La Dernière Heure https://www.dhnet.be/ Belgium
#> 11 La Libre Belgique https://www.lalibre.be/ Belgium
#> 12 Le Soir https://www.lesoir.be/ Belgium
#> 13 The Brussels Times https://www.thebrusselstimes.com/ Belgium