2011-11-12 232 views
-5

可能重複:
Scrape web page contents
How to scrape all content from a website?刮網站使用PHP

我試圖從網站covers.com對我來說,我可以生活湊一些技術統計數據不知道該怎麼做。我想從某個日期獲得boxscores,但是當我使用simplehtmldom包中的file_get_html時,頁面默認爲今天遊戲的視圖狀態。任何關於如何獲得特定日子游戲的url的想法?提前致謝!

+0

http://stackoverflow.com/questions/2980519/writing-a-program-to -scrape-forums http://stackoverflow.com/questions/584826/scrape-web-page-contents http://stackoverflow.com/questions/5779623/how-to-scrape-all-content-from-a-website等等 – GordonM

回答

1

只是加載HTML頁面不會幫助你。大部分數據通過AJAX提取。要了解哪些網址使用了FirebugDragonfly。查看網絡請求選項卡,並觀察資源和請求參數。

(強制提示,你應該有權限湊數據,除非它的科學和非商業用途。)