Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 抓取网页内容 如何从网站抓取所有内容?
我正在尝试从网站cover.com上抓取一些boxscore 数据,而对于我的生活,我不知道该怎么做。我想从某个日期获取 boxscores,但是当我file_get_html从simplehtmldom包中使用时,页面默认为今天游戏的视图状态。关于如何获取某天游戏的网址的任何想法?提前致谢!
file_get_html
simplehtmldom
仅仅加载 HTML 页面对您没有帮助。大多数数据是通过 AJAX 提取的。找出在哪些 URL 下使用Firebug或Dragonfly。查看网络请求选项卡,并观察资源和请求参数。
Firebug
Dragonfly
(强制性提示您应该有权抓取数据,除非出于科学和非商业目的。)