Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
webscraping使用rvest,选择表单中的内容_R_Web Scraping_Rvest - Fatal编程技术网

webscraping使用rvest,选择表单中的内容

webscraping使用rvest,选择表单中的内容,r,web-scraping,rvest,R,Web Scraping,Rvest,我正在使用rvest浏览特定网站。在网站上,我需要选择我想要显示的日期和位置 library(rvest) session<-html_session(url) form<-html_form(read_html(url))[[1]] 控制台上出现:“from”:2018年2月8日 以及其他元素“位置”:“位置”:[0/3] 我的问题是如何设置“位置”的值。我从手动下拉列表中知道“位置”的不同元素。仍然: set_values(form, location="Location_A"

我正在使用rvest浏览特定网站。在网站上,我需要选择我想要显示的日期和位置

library(rvest)
session<-html_session(url)
form<-html_form(read_html(url))[[1]]
控制台上出现:“from”:2018年2月8日
以及其他元素“位置”: