【发布时间】:2015-06-02 02:43:30
【问题描述】:
我有一个名为 dogs 的数据框,如下所示:
url
https://en.wikipedia.org/wiki/Dog
https://en.wikipedia.org/wiki/Dingo
https://en.wikipedia.org/wiki/Canis_lupus_dingo
我想将所有网址提交给 rvest,但我不知道如何
我试过了
dogstext <-html(dogs$url) %>%
html_nodes("p:nth-child(4)") %>%
html_text()
但我收到了这个错误
Error in UseMethod("parse") :
no applicable method for 'parse' applied to an object of class "factor"
【问题讨论】: