ds.pull_JSON: Don't Repeat Yourself when pulling JSON

Description Usage Arguments Value

View source: R/5_pull.R

Description

Don't Repeat Yourself when pulling JSON

Usage

1
2
ds.pull_JSON(url, agents, try_tolerance = 3, ref = "nhl.com",
  clean = FALSE)

Arguments

url

character. A URL.

agents

character vector. One or more HTTP user agent strings.

try_tolerance

numeric. Number of times to bang head against wall. Default 3.

ref

character. A referer. Default "nhl.com".

clean

logical. Clean certain special characters from the JSON? Default FALSE.

Value

a JSON object or NULL


deepfriar/dryscrape documentation built on Nov. 5, 2019, 2:27 p.m.