[問題] Python能爬這個網頁 R卻一直沒辦法?

作者: liu02112 (好想吃慚愧棒棒糖.......)   2017-07-25 11:30:29
- 問題: 不確定爬以下網頁資料要用GET還是POST?
https://www.investing.com/commodities/gold-historical-data
[軟體熟悉度]:
對於R有一定的基礎,但是對R Craeler很不熟
[問題敘述]:
目前想抓取 www.investing.com 的任意時間區間歷史資料
但是看到這網頁我真是傻眼,不知道是用
GET("https://www.investing.com/instruments/HistoricalDataAjax")
不可能..沒有要求時間或ID...
POST("https://www.investing.com/instruments/HistoricalDataAjax",
Form Data=....)
但是想想也不對 而且try過資料也沒進來...
在Github上找了Python的code確實可以爬,
但是對Python不熟,所以我不解為什麼Python能辦到R卻不行?
以上
就算不一定能幫我解決問題
還是要謝謝各位願意花時間看本文
作者: celestialgod (天)   2017-07-25 20:09:00
把python code貼上來看是需要什麼吧

Links booklink

Contact Us: admin [ a t ] ucptt.com