guardian_sections: Search Guardian Sections

Description Usage Arguments See Also Examples

Description

guardian_sections lets you directly search The Guardian for metadata about sections - individual categories of content, such as world or US news.

Usage

1
guardian_sections(api_key, query, ...)

Arguments

api_key

A key to the Guardian API, which can be obtained here.

query

Your search query. This can contain operators (sausage AND mash) or phrases ("sausage & mash"); by default, searches work as an OR, looking for the presence of any one individual word in the query.

...

further arguments to pass to httr's GET.

See Also

guardian_tags for retrieving tags, another class of content metadata.

Examples

1
2
3
4
5
## Not run: 
# Simple example
business_sections <- guardian_sections("test", "business")

## End(Not run)

Ironholds/rdian documentation built on May 7, 2019, 6:42 a.m.