[问题] 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