Description Usage Arguments Examples
Automagically writes out the result of an httr::GET
request to an open
WARC file connection enabling seamless recording/caching of the response
for later re-use.
1 |
wobj |
WARC file object |
url |
the url of the page to retrieve |
config |
Additional configuration settings such as http
authentication ( |
... |
Further named parameters, such as |
handle |
The handle to use with this request. If not
supplied, will be retrieved and reused from the |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
tf <- tempfile("test")
wf <- warc_file(tf)
warc_GET(wf, "https://data.police.uk/api/crimes-street/all-crime",
query = list(lat=52.629729, lng=-1.131592, date="2017-01"))
warc_POST(
wf,
url = "https://data.police.uk/api/crimes-street/all-crime",
query = list( lat = "52.629729", lng = "-1.131592", date = "2017-01")
) -> uk_res
close_warc_file(wf)
unlink(tf)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.