Learn R Programming

rvest (version 0.3.1)

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
search <- html_form(read_html("http://www.google.com"))[[1]]
set_values(search, q = "My little pony")
set_values(search, hl = "fr")
set_values(search, btnI = "blah")

Run the code above in your browser using DataLab