【发布时间】:2019-05-30 14:32:41
【问题描述】:
我写了一个小程序。 我在哪里 抓取 Google 搜索网站,我想要 Google 搜索网页上的所有 URL。但是我在 O/P 中得到了字符(0)。请帮帮我。
代码 -
library("rvest")
r_h = read_html("https://www.google.com/search?q=google&oq=google&aqs=chrome.0.69i59j0l2j69i60l2j69i65.1101j0j7&sourceid=chrome&ie=UTF-8")
d = r_h %>% html_nodes(".iUh30") %>% html_text() %>% as.character()
【问题讨论】:
标签: html r web-scraping rvest