难道ESPN的Cricinfo有一个API? [英] Does ESPN Cricinfo have an 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建议 - 是使用雅虎管道来合并多个不同的饲料。然后,您可以得到最终烟斗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.
这最好通过举例来说明通过查看最新板球得分管这里:<一href=\"http://pipes.yahoo.com/pipes/pipe.info?_id=tMcVGcqn3BGvsT__2R2EvQ\">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
当然,这将是很好能够搜索的统计数据和返回裸数据的的statsguru 搜索,但我在present唯一的建议是手动构建statsguru查询与 wrappertype =打印
附加,然后使用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:
<一个href=\"http://stats.espncricinfo.com/ci/engine/player/13418.html?class=1;template=results;type=allround;wrappertype=print\">http://stats.espncricinfo.com/ci/engine/player/13418.html?class=1;template=results;type=allround;wrappertype=print
这篇关于难道ESPN的Cricinfo有一个API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!