如何在Mac上使用htmltreeparse?

时间:2018-10-29 02:33:11

标签: r xml html-parsing rstudio

我尝试与https一起使用

my_url <- "https://www.amazon.com/All-new-Echo-Show-2nd-Gen/dp/B077THMYGN/ref=redir_mobile_desktop?_encoding=UTF8&ref_=ods_gw_ha_bp_dc_092318"

html_page2 <- htmlTreeParse(my_url, useInternalNode = TRUE)
  

警告信息:   XML内容似乎不是XML:'https://www.amazon.com/All-new-Echo-Show-2nd-Gen/dp/B077THMYGN/ref=redir_mobile_desktop?encoding=UTF8&ref=ods_gw_ha_bp_dc_092318'

而且没有它也会导致我出现此错误

  

错误:无法加载外部实体“ http://www.amazon.com/All-new-Echo-Show-2nd-Gen/dp/B077THMYGN/ref=redir_mobile_desktop?encoding=UTF8&ref=ods_gw_ha_bp_dc_092318

0 个答案:

没有答案