title: Merging multiple Google Calendar feeds for display on my desktop
body: <p>I have several Google calendars that I'd like to merge and place on my windows desktop using <a href="http://www.samurize.com/" rel="nofollow noreferrer">Samurize</a>. I've tried using Samurize's Page Scraper plugin, but it doesn't appear to be up to the task.</p>
  
  <p>I can get Samurize to run a script and place it's output on the desktop, but I'm not sure 
  what the best tools are to do this.</p>
  
  <p>All the URLs I have are of the form:</p>
  
  <pre><code>http://www.google.com/calendar/feeds/example%40gmail.com/private-REMOVED/basic?futureevents=true&amp;orderby=starttime&amp;sortorder=ascending&amp;singleevents=true
  </code></pre>
  
  <p>So I could fetch them using curl, but then I need to filter them.</p>
  
  <p>I want something that looks like:</p>
  
  <pre><code>2009 12 02  Event from calendar 1's description 
  2009 12 03  Event from calendar 2's description 
  2009 12 04  Event from calendar 1's description 
  2009 12 05  Event from calendar 3's description 
  2009 12 06  Event from calendar 1's description 
  </code></pre>
  
  <p>However the dates in the calendar feeds are formatted like this:</p>
  
  <pre><code>&lt;title type='html'&gt;Event from calendar 1's description&lt;/title&gt;&lt;summary type='html'&gt;When: Fri 5 Dec 2008&amp;lt;br&amp;gt;
  </code></pre>
  
  <p><strong>So how do I filter out the dates and descriptions, and convert the dates?</strong> </p>
  
  <p>(I have cygwin installed so something using perl or sed/awk would be perfect as I'm familiar enough with them that I'd be confident about altering them in future, but I'm open to suggestions.)</p>