- 抓各股的 "量", "價", "時間". 之前有release的DDE請參考 http://funningboy.blogspot.com/2010/02/dde-server-for-stock.html 透過Yahoo的Web抓取過去的History Data,但發現Yahoo更新的速度實在是太慢了,有時候會少了好多天.所以updata 成 Google的Web Extraction.
- 只要把pm端口跟pl接起來就可用了 Sample code sub GetStockDailyData{ my $self = shift; my ($iMyStockID,$iMyStartTime,$iMyEndTime) = (@_); .... }
- Code Download http://sites.google.com/site/funningboy/perl_code/GoogleDailyData.pm?attredirects=0&d=1
- 執行結果
command test
回覆刪除