fetch_all_json: Fetch all json data for a set of briefings

Description Usage Arguments Value

View source: R/fetch.R

Description

fetch_all_json gets all of the available data for a set of briefings. This provides some data that is not available in the main research briefings feed and must be downloaded separately from the API for each individual briefing paper. This function will therefore make multiple calls to the API.

Usage

1
fetch_all_json(resources, pause = 1)

Arguments

resources

A vector of resource urls for a set of briefing papers. These are the urls stored in the first column of the dataframe returned by get_briefings and fetch_briefings.

pause

The number of seconds to pause between page requests.

Value

A list of briefings as json.


houseofcommonslibrary/clbrief documentation built on Sept. 13, 2020, 12:13 a.m.