Subject: | regex change |
Date: | Thu, 3 Sep 2009 11:54:41 -0400 (EDT) |
To: | bug-Bot-WootOff [...] rt.cpan.org |
From: | Noel Rosenberg <noel [...] thesubnet.net> |
Woot.com appears to have changed their HTML slightly yesterday, and this
is causing Bot:WootOff to return "no match" when it looks for the item and
price.
if($text =~ m#<h2>(.*?)</h2>\s+<h3>\$(.*?)</h3>#s) {
The current text is:
-------------
<h2 class="fn">Uniden 5.8GHz Dual Handset Digital Cordless Phone with An
swering System</h2>
<h3 class="price"><span class="money"><abbr class="currency" title="USD"
lang="en">$</abbr><span class="amount">19.99</span></span></h3>
-------------
so they seem to have added a newline, and also some css and formatting
tags. I'm still trying to adapt the regex, but have not yet gotten it
quite right.
---Noel Rosenberg
---noel@thesubnet.net
---Sleep Vampire
---"One does not win a mud-slinging fest by getting into the mud;
--- The pigs have the home field advantage."