Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET
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 17-Aug-10 13:28pm
Comments
Peter_in_2780 at 17-Aug-10 21:15pm
   
Why would you bother? Google gives nearly 15 million hits on "windows mobile rss reader free".
Mangesh P Deshpande at 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 at 18-Aug-10 6:58am
   
What is cricket? A grasshopper?
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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 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..
  Permalink  
v3
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 Maciej Los 225
1 BillWoodruff 200
2 OriginalGriff 191
3 Kornfeld Eliyahu Peter 175
4 CPallini 164


Advertise | Privacy | Mobile
Web03 | 2.8.141015.1 | Last Updated 21 Oct 2010
Copyright © CodeProject, 1999-2014
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