【发布时间】:2022-01-13 16:41:16
【问题描述】:
我正在尝试从此链接中抓取下表:
https://www.price.moc.go.th/en/home_en
使用rvest 以下内容不起作用,但我不知道要更改什么:
读取html代码
html <- read_html("https://www.price.moc.go.th/en/home_en")
进入特定的css选择器
check <- html %>%
html_nodes("#cpi_index > td:nth-child(2)") %>%
html_text()
【问题讨论】:
标签: html r web-scraping rvest rselenium