html_session

0th

Percentile

Simulate a session in an html browser.

Simulate a session in an html browser.

Usage
html_session(url, ...)

is.session(x)

Arguments
url

Location to start session

...

Any additional httr config to use throughout session.

x

An object to test to see if it's a session.

Methods

A session object responds to a combination of httr and html methods: use cookies(), headers(), and status_code() to access properties of the request; and html_nodes to access the html.

Aliases
  • html_session
  • is.session
Examples
library(rvest) # NOT RUN { # http://stackoverflow.com/questions/15853204 s <- html_session("http://hadley.nz") s %>% jump_to("hadley-wickham.jpg") %>% jump_to("/") %>% session_history() s %>% jump_to("hadley-wickham.jpg") %>% back() %>% session_history() # } # NOT RUN { s %>% follow_link(css = "p a") # }
Documentation reproduced from package rvest, version 0.3.2, License: GPL-3

Community examples

Looks like there are no examples yet.