[问题类型]:
程式咨询(我想用R 做某件事情,但是我不知道要怎么用R 写出来)
[软件熟悉度]:
请把以下不需要的部份删除
入门(写过其他程式,只是对语法不熟悉)
*[m
[问题叙述]:
请简略描述你所要做的事情,或是这个程式的目的
再用R爬虫抓取八卦版,但在getURL 时,抓取的资料为空
[程式范例]:
> url
[1] "https://www.ptt.cc/bbs/Gossiping/index20865.html"
> html = getURL(url,ssl.verifypeer = FALSE,encoding="UTF-8")
> html
[1] ""
[环境叙述]:
R version 3.2.1 (2015-06-18)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 8 x64 (build 9200)
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950 LC_CTYPE=Chinese
(Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] httr_1.2.1 RCurl_1.95-4.8 bitops_1.0-6 XML_3.98-1.6
loaded via a namespace (and not attached):
[1] R6_2.2.0 tools_3.2.1 curl_2.3
[关键字]:
选择性,也许未来有用