doulongdan2264 2012-10-02 20:10
浏览 12

如何将这个特殊的HTML表解析成php数组? [重复]

Possible Duplicate:
How to parse and process HTML with PHP?
How to parse HTML with PHP?

http://www.nfl.com/widget/gc/2011/tabs/cat-post-boxscore?gameId=2012093000

I am looking to scrape the data from pages like the link above (that is, game level NFL data).

NFL.com has a handy JSON API that makes a lot of this data accessible. That is, for games 2010 and later. For earlier games, I am going to have to parse the HTML of pages similar to the one above.

I've bene using Simple HTML Dom, but am running into trouble collecting all of the data (because it is of variable length) in the tr class='tbdy1' tags.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?