如何抓取照片网址

时间:2020-07-21 07:10:52

标签: r image photo rvest scrape

URL

library(rvest)
url <- url("http://www.hkcah.com/index.phproute=product/category&path=76_94", "rb")
hkcah <- read_html(url)

照片

photo_data_html <- html_nodes(hkcah,'#content img')
photo_data_html
photo_data <- html_text(photo_data_html)
photo_data

这就是我得到的:

photo_data

[1] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

我想获取图像的链接,请帮助,谢谢!

0 个答案:

没有答案