wire: Wire

Description Usage Arguments Functions Examples

Description

With the Times Newswire API, you can get links and metadata for Times' articles as soon as they are published on NYTimes.com. The Times Newswire API provides an up-to-the-minute stream of published articles. You can filter results by source (all, nyt, or iht) and section (arts, business, ...).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ny_wire_content(url)

ny_wire_section_list()

ny_wire_source(section, pages = 1, source = c("all", "nyt", "iht"))

ny_wire_period(
  section,
  period = 12,
  pages = 1,
  source = c("all", "nyt", "iht")
)

Arguments

url

The complete URL of a specific news item.

section

Name of section as returned by ny_wire_section_list.

pages

Number of pages of results to return.

source

Name of the source; all, New York Times nyt, International New York Times iht.

period

Limits the set of items by time published, integer in number of hours.

Functions

Examples

1
2
3
4
5
6
## Not run: 
nytimes_key("xXXxxXxXxXXx")
sections <- ny_wire_section_list()
wires <- ny_wire_source(sample(sections$section, 1))

## End(Not run)

news-r/nytimes documentation built on Feb. 28, 2020, 4:49 a.m.