rvest (version 0.3.6)

set_values: Set values in a form.

Description

Set values in a form.

Usage

set_values(form, ...)

Arguments

form

Form to modify

...

Name-value pairs giving fields to modify

Value

An updated form object

Examples

Run this code
# NOT RUN {
search <- html_form(read_html("http://www.google.com"))[[1]]
set_values(search, q = "My little pony")
set_values(search, hl = "fr")
# }
# NOT RUN {
set_values(search, btnI = "blah")
# }

Run the code above in your browser using DataCamp Workspace