使用rvest发布与网站的连接

时间:2016-02-09 17:48:57

标签: r rvest httr

我可以在Chrome浏览器中打开一个没有问题的网址,但使用rvest

时无法使用该网址
library(rvest)

u <- "https://github.com/issues?q=is%3Aissue+author%3Atimelyportfolio+is%3Aopen"

dom <-read_html(u)
Error in open.connection(x, "rb") : HTTP error 404


library(httr)

http_status(u)
Error in UseMethod("status_code") : 
  no applicable method for 'status_code' applied to an object of class "character"

帮助感谢

0 个答案:

没有答案