ESPN Cricinfo 有 API 吗? [英] Does ESPN Cricinfo have an API?

查看:26
本文介绍了ESPN Cricinfo 有 API 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

espncricinfo.com 是否公开了 API?我对现场比分、新闻和照片感兴趣.

Has espncricinfo.com exposed an API? I'm interested in live scores, news, and maybe photos.

到目前为止,我只知道 RSS 提要..

Up until now I have only known of the rss feed..

推荐答案

我不相信 API 存在 - 很遗憾.

I do not believe an API exists - unfortunately.

许多用户所做的 - 以及 cricinfo 自己的建议 - 是使用 Yahoo Pipes 合并许多不同的提要.然后,您可以获得 JSON 和其他格式的结果管道.

What a number of users have done - and what is suggested by cricinfo themselves - is use Yahoo Pipes to merge a number of different feeds. You can then get the resultant pipe in JSON and other formats.

通过查看此处的最新板球得分"管道,可能最好通过示例来证明:http://pipes.yahoo.com/pipes/pipe.info?_id=tMcVGcqn3BGvsT__2R2EvQ

It's probably best demonstrated by example by looking at a 'Latest cricket scores' pipe here: http://pipes.yahoo.com/pipes/pipe.info?_id=tMcVGcqn3BGvsT__2R2EvQ

当然,如果能够搜索统计信息和 REST 服务,该服务返回 statsguru 搜索,但我目前唯一的建议是手动构建 statsguru 查询并附加 wrappertype=print 然后使用 xpath 进行过滤出你需要的数据.

Of course, it would be nice to be able to search the statistics and a REST service which returns the bare data for a statsguru search, but the only suggestion I have at present is to build statsguru queries manually with wrappertype=print appended and then use xpath to filter out the data you require.

一个 statsguru 查询示例:

An example statsguru query:

http://stats.espncricinfo.com/ci/engine/player/13418.html?class=1;template=results;type=allround;wrappertype=print

这篇关于ESPN Cricinfo 有 API 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆