我正试图抓下网页
parenturl = http://www.liberty.co.uk/fcp/product/Liberty//Rosa-A-Tana-Lawn/1390
但我得到以下错误
srcpage = getURLContent(GET(parenturl)$url,timeout(10))
Error in function (type, msg, asError = TRUE) : Empty reply from server
是否可以绕过并抓取网页
非常感谢提前
答案 0 :(得分:0)
请尝试使用httr
库:
library(httr)
pg <- GET("http://www.liberty.co.uk/fcp/product/Liberty//Rosa-A-Tana-Lawn/1390")
print(content(pg))
# too much to paste here