bow: Introduce yourself to the host
Description
Introduce yourself to the host
Usage
bow(
url,
user_agent = "polite R package",
delay = 5,
times = 3,
force = FALSE,
verbose = FALSE,
...
)is.polite(x)
Value
object of class polite
, session
Arguments
- url
URL
- user_agent
character value passed to user agent string
- delay
desired delay between scraping attempts. Final value will be the maximum of desired and mandated delay, as stipulated by robots.txt
for relevant user agent
- times
number of times to attempt scraping. Default is 3.
- force
refresh all memoised functions. Clears up robotstxt
and scrape
caches. Default is FALSE
- verbose
TRUE/FALSE
- ...
other curl parameters wrapped into httr::config
function
- x
object of class polite
, session
Examples
Run this code# \donttest{
library(polite)
host <- "https://www.cheese.com"
session <- bow(host)
session
# }
Run the code above in your browser using DataLab