commit af23c1e85540b72fda0f8649123c74c63a22fe66
parent c6d33cb1737c7393c3875752866ceb29ecb2a3df
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Sun, 8 Feb 2015 19:34:08 -0700
price_scraper: add a note about limitations
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/price_scraper.pl b/price_scraper.pl
@@ -149,6 +149,7 @@ sub get_valid_price
# do a fuzzy search for digit combinations that look like a price
# XXX: uses the first found price in the page
+ # XXX: this does not work on single digit prices, ie $7.00
my ($price, @others) = ($search_prices[0] =~ m/(\d[\d,]+)/);
return undef unless defined $price;