Click here to Skip to main content
13,293,369 members (52,121 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to develop Windows phone app for displaying live cricket scores.

For now, I plan to display RSS feeds from - considering that this link will show all the live matches, lets select one of the link from above which is assume:
SA Vs Sri Lanka

Now, I was assuming I'll have similar Xml nodes and children as in the first link like "Channels","Title", "Description", etc which forms an RSS. But the actual live score URL does not contain those xml nodes.

So, my question is if I were to display the live score, do I need to parse the above URL which does not contain RSS feeds? Or is there any way around? Because if CricInfo (the site) decides to change the look and feel, then my parser will get screwed.

Any help is appreciated!
Posted 17-Aug-10 14:28pm
Peter_in_2780 17-Aug-10 21:15pm
Why would you bother? Google gives nearly 15 million hits on "windows mobile rss reader free".
Mangesh P Deshpande 18-Aug-10 2:31am
Thanks for the reply Peter. Probably I did a poor job in putting together my question, sorry for that.. Let me explain again.

Yes, I'll get plenty of readily available RSS feeds reader online or even C# code snippets. But using them, I'll only be able to read URL which contains some links to live matches.
But my interest doesn't end here. My priority is get that collection (live matches from the livescores.xml RSS feed, which can be done in numerous ways which I know) and then read the data from those URLs (example - SA Vs Sri Lanka[])

Now, if you open this URL, you will observe it does not have any RSS feed tags. So the only way to show data(player's scores) from that URL is thru parsing it with some specific html tags.. So my question is (as I am working for the first time on RSS feeds) - Is that a right approach to parse the page for the data?
Toli Cuturicu 18-Aug-10 6:58am
What is cricket? A grasshopper?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The live match page is not RSS, it is HTML so you need to parse the HTML if you want the live match information.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

We need to extract data out of the tags. We should loop through the tags and display the title tag it gives the current score of the match.

We can use[^] feed itself.

But as your requirement is different we need to parse html data only cos as you said its not a rss feed page..For example tag of class "playerName" fetches the player name and class "battingRuns" gets the runs scored..
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Just be aware that the information on Cricinfo is their copyright, so there may be infringement issues.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171207.1 | Last Updated 21 Oct 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100