Learn R Programming

rdian (version 0.1.1)

guardian_sections: Search Guardian Sections

Description

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

Usage

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

Run this code
## Not run: 
# # Simple example
# business_sections <- guardian_sections("test", "business")
# ## End(Not run)

Run the code above in your browser using DataLab