Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to develop Windows phone app for displaying live cricket scores.

For now, I plan to display RSS feeds from http://static.cricinfo.com/rss/livescores.xml - 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
Comments
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 http://static.cricinfo.com/rss/livescores.xml 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[http://www.cricinfo.com/ci/engine/match/463543.html?CMP=OTC-RSS])

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?

Just be aware that the information on Cricinfo is their copyright, so there may be infringement issues.
 
Share this answer
 
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 http://static.cricinfo.com/rss/livescores.xml[^] 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..
 
Share this answer
 
v3
The live match page is not RSS, it is HTML so you need to parse the HTML if you want the live match information.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900