pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit ff4d1a4b2c1f19cd81430d8a086e2aefc627c793
parent 7024e3ad409a6bf78861b1846f9b076b0476cc26
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Mon, 13 Oct 2014 23:09:43 -0600

product_scraper: don't redeclare brand variable

Diffstat:
Mproduct_scraper.pl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product_scraper.pl b/product_scraper.pl @@ -86,7 +86,7 @@ for (keys %product_map) { # shows up as text my $brand = $product->find(".ProductBrand")->text(); if ($brand eq "") { - my $brand = $product->find(".ProductBrand")->html(); + $brand = $product->find(".ProductBrand")->html(); ($brand) = ($brand =~ m/Brand: ([A-Za-z]+)/); } next if (not_defined($brand, "brand", $node));