<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cricket PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx</link><description>I was thinking about PowerShell and how you can get it to do fantastic things. And I wondered how easily it could be used for scraping cricket scores . So I threw together four lines of code to grab the cricket scoreboard from cricinfo and rip out the</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>The cricket knowledgebase  &amp;raquo; Blog Archive   &amp;raquo;  Cricket  PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#1420421</link><pubDate>Wed, 26 Dec 2007 17:40:30 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1420421</guid><dc:creator>The cricket knowledgebase  » Blog Archive   »  Cricket  PowerGadget</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;The cricket knowledgebase &amp;nbsp;&amp;amp;raquo; Blog Archive &amp;nbsp; &amp;amp;raquo; &amp;nbsp;Cricket &amp;nbsp;PowerGadget&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1420421" width="1" height="1"&gt;</description></item><item><title>re: Cricket PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#650091</link><pubDate>Wed, 07 Mar 2007 05:13:11 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:650091</guid><dc:creator>Rob Farley</dc:creator><description>&lt;p&gt;This isn't VB.Net code. This is PowerShell to put into PowerGadgets. In VB.Net you could use a WebClient object to download the string from that location (altered to the right match), and then use a regular expression to get the score.&lt;/p&gt;
&lt;p&gt;But I'm not going to write the code for you - this was an exercise in PowerGadgets, not VB.Net&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=650091" width="1" height="1"&gt;</description></item><item><title>re: Cricket PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#650025</link><pubDate>Wed, 07 Mar 2007 04:43:29 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:650025</guid><dc:creator>Jahangir Moin</dc:creator><description>&lt;p&gt;i think u done a great job for junior programmer ,but i can't understand these lines of code for grabing score board .please provide me these lines of code in vb.net b/c i also want to display live cricket score board in my website so i need your help or you can provide &amp;nbsp;resources in this regard &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=650025" width="1" height="1"&gt;</description></item><item><title>re: Cricket PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#480168</link><pubDate>Tue, 09 Jan 2007 23:30:53 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:480168</guid><dc:creator>Rob Farley</dc:creator><description>&lt;p&gt;Ah, so I guess then you don't even need a second line...&lt;/p&gt;
&lt;p&gt;[Regex]::Match((new-object Net.WebClient).DownloadString(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://content-aus.cricinfo.com/ausveng/engine/current/match/249226.html?view=live;wrappertype=mainframe&amp;quot;"&gt;http://content-aus.cricinfo.com/ausveng/engine/current/match/249226.html?view=live;wrappertype=mainframe&amp;quot;&lt;/a&gt;),&amp;quot;&amp;lt;title&amp;gt;(.*)&amp;lt;/title&amp;gt;&amp;quot;,&amp;quot;IgnoreCase&amp;quot;).Groups[1].Value&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=480168" width="1" height="1"&gt;</description></item><item><title>4 lines are WAY to much!</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#479521</link><pubDate>Tue, 09 Jan 2007 14:17:33 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:479521</guid><dc:creator>Lars Haupt-Hansen</dc:creator><description>&lt;p&gt;Using RegEx to then use substring is like crossing the river for water (not sure if thats a saying anywhere else than Denmark):&lt;/p&gt;
&lt;p&gt;$ret = (new-object Net.WebClient).DownloadString(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://content-aus.cricinfo.com/ausveng/engine/current/match/249226.html?view=live;wrappertype=mainframe&amp;quot;"&gt;http://content-aus.cricinfo.com/ausveng/engine/current/match/249226.html?view=live;wrappertype=mainframe&amp;quot;&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;[Regex]::Match($ret,&amp;quot;&amp;lt;title&amp;gt;(.*)&amp;lt;/title&amp;gt;&amp;quot;,&amp;quot;IgnoreCase&amp;quot;).Groups[1].Value&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=479521" width="1" height="1"&gt;</description></item><item><title>re: Cricket PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#472623</link><pubDate>Sat, 06 Jan 2007 00:42:34 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:472623</guid><dc:creator>Rob Farley</dc:creator><description>&lt;p&gt;You'll have to change the match number, but that's not hard to work out. :) Just replace the 249226 with whatever applies to the match you're interested in.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=472623" width="1" height="1"&gt;</description></item><item><title>re: Cricket PowerGadget</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#470953</link><pubDate>Fri, 05 Jan 2007 10:11:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:470953</guid><dc:creator>Abhishek225</dc:creator><description>&lt;p&gt;Very cool! Congatulations on 5-0 sweep in the ashes. I will use your script as a basis to get India-SA scores!&lt;/p&gt;
&lt;p&gt;-Abhishek&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=470953" width="1" height="1"&gt;</description></item><item><title>Take you shell scripting to the next Power</title><link>http://msmvps.com/blogs/robfarley/archive/2007/01/03/cricket-powergadget.aspx#470633</link><pubDate>Fri, 05 Jan 2007 06:50:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:470633</guid><dc:creator>My Technobabble</dc:creator><description>&lt;p&gt;Powershell is a truly awesome new shell that we've recently shipped with .NET 3.0 and Windows Vista.&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=470633" width="1" height="1"&gt;</description></item></channel></rss>