commit f814b4bbec182dd868aefb6e2f28b94add1c2dec parent cd3e77577e84da6ea619cde32a79aa584ba3a2b2 Author: Kyle Milz <kyle@getaddrinfo.net> Date: Mon, 3 Nov 2014 21:15:43 -0700 product_scraper: rename results -> thumbnails Diffstat:
M | product_scraper.pl | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/product_scraper.pl b/product_scraper.pl @@ -69,21 +69,21 @@ for (keys %product_map) { $pages = (@elements / 2) - 1; } - my @results; + my @thumbnails; for (1..$pages) { $dom = get_dom($class_url . "$_", $ua); return if (! defined $dom); # $dom->filter(".AJAX_List_Body"); - push @results, $dom->find(".PIV_Regular")->html_array(); + push @thumbnails, $dom->find(".PIV_Regular")->html_array(); } - vprint("$_: found " . @results . " products\n"); + vprint("$_: found " . @thumbnails . " products\n"); my $new = 0; my $old = 0; my $start = time; - for my $node (@results) { + for my $node (@thumbnails) { sleep int(rand(10)); my $thumbnail_dom = HTML::Grabber->new(html => $node);