<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,7 +16,7 @@ require 'yaml'
 
 Twitter::Client.configure do |conf|
   conf.application_name     = 'PollenLondonBot'
-  conf.application_version  = '0.3'
+  conf.application_version  = '0.4'
   conf.application_url      = 'https://github.com/snowblink/pollen-london/tree'
   conf.source               = 'pollenlondon'
 end
@@ -26,22 +26,15 @@ twitter = Twitter::Client.new(twitter_config)
 
 date = DateTime.now.strftime(&quot;%A %Y%m%d&quot;)
 
-# where I live
-PLACE = &quot;London&quot;
-
 # load BBC Pollen site
-doc = Hpricot(open(&quot;http://www.bbc.co.uk/weather/pollen/&quot;))
-
-elements = doc.search(&quot;/html/body/table/tbody/tr/td/img&quot;)
+doc = Hpricot(open(&quot;http://news.bbc.co.uk/weather/forecast/8/UV.xhtml&quot;))
 
+elements = doc.search(&quot;li&quot;)
 to_twitter = []
 
-elements.each do |image|
-  alt_text = image.get_attribute(&quot;alt&quot;)
-  if alt_text.include?(PLACE)
-    alt_text =~ /is (.* risk)/
-    risk = $1
-    to_twitter &lt;&lt; &quot;#{risk.capitalize} checked #{date}&quot;
+elements.each do |element|
+  if element.get_attribute(&quot;class&quot;) == 'pollenval'
+    to_twitter &lt;&lt; element.at(&quot;img&quot;).get_attribute(&quot;alt&quot;)
   end
 end
 </diff>
      <filename>pollen.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f5cb825438606663515ffadcff152bf1cf77b551</id>
    </parent>
  </parents>
  <author>
    <name>Jonathan Lim</name>
    <email>snowblink@gmail.com</email>
  </author>
  <url>http://github.com/snowblink/pollen-london/commit/5ce40ae79ccb3c6fb121d9b40ac9ade2aa3cf17d</url>
  <id>5ce40ae79ccb3c6fb121d9b40ac9ade2aa3cf17d</id>
  <committed-date>2009-05-12T01:12:15-07:00</committed-date>
  <authored-date>2009-05-12T01:12:15-07:00</authored-date>
  <message>Updated to the new &quot;improved&quot; BBC weather site.</message>
  <tree>6655a2e6895fb8b1014b0abc7bfe56dc0cfd1818</tree>
  <committer>
    <name>Jonathan Lim</name>
    <email>snowblink@gmail.com</email>
  </committer>
</commit>
