作者liu02112 (好想吃惭愧棒棒糖.......)
看板R_Language
标题[问题] Python能爬这个网页 R却一直没办法?
时间Tue Jul 25 11:30:29 2017
- 问题: 不确定爬以下网页资料要用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却不行?
以上
就算不一定能帮我解决问题
还是要谢谢各位愿意花时间看本文
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.241.210.164
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1500953434.A.471.html
1F:推 celestialgod: 把python code贴上来看是需要什麽吧 07/25 20:09