bow: Introduce yourself to the host

Description Usage Arguments Value Examples

View source: R/bow.R

Description

Introduce yourself to the host

Usage

1
2
3
4
5
bow(url,
  user_agent = "polite R package - https://github.com/dmi3kno/polite",
  delay = 5, force = FALSE, verbose = FALSE, ...)

is.polite(x)

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

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

Value

object of class polite, session

Examples

1
2
3
4
5
 library(polite)

 host <- "https://www.cheese.com"
 session <- bow(host)
 session

polite documentation built on Dec. 1, 2019, 1:10 a.m.