使用 JSoup 提取 HTML 表格内容
如何提取位于以下位置的表的内容: /id/2/year/2012/acc-conference">http://espn.go.com/mens-college-basketball/conferences/stands//id/2/year/2012/acc-conference
几个例子我发现不太清楚如何获取表中的内容,有人可以提供任何帮助吗?
How can I extract the contents of the table located at:
/id/2/year/2012/acc-conference">http://espn.go.com/mens-college-basketball/conferences/standings//id/2/year/2012/acc-conference
The few examples I've seen aren't too clear on how to get the contents of the table. Can anyone offer any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您现在可能已经解决了这个问题,但这将遍历每个表格并打印出团队名称和赢/输列。调整您需要的信息。第二个表的格式显然不同,因此如果您想要该表中的不同信息,则必须进一步调整。如果您需要更多帮助,请告诉我。
You probably have this solved by now, but this will go over each table and print out the team name and the Win/Loss column. Adjust for the information you need. The second table is obviously formatted differently, so if you want different information from that table, you will have to adjust further. Let me know if you need any more help.