pricecharts

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

commit 03128a11682f3785185dc7d32903eeb4cbcd2fa1
parent 25396783059f7ea719c6a511b156e8b93198e5c4
Author: Kyle R W Milz <kyle@getaddrinfo.net>
Date:   Mon, 11 Aug 2014 23:25:10 -0600

price_scraper: move some title generation code to product scraper

Diffstat:
Mprice_scraper.pl | 12------------
Mproduct_scraper.pl | 12++++++++++++
2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/price_scraper.pl b/price_scraper.pl @@ -133,18 +133,6 @@ sub scrape_vendors print "$_\n" for @prices; } - #for (keys %title_dict) { - # print "$_ " if ($title_dict{$_} / $total_titles >= 0.5); - #} - # for (split(" ", $title)) { - # if (! $title_dict{$_}) { - # $title_dict{$_} = 0; - # } - # $title_dict{$_}++; - # } - # $total_titles++; - #print "\n"; - return if ($args{n} || (scalar @prices) == 0); mkdir $cfg->{paths}{data}; diff --git a/product_scraper.pl b/product_scraper.pl @@ -127,6 +127,18 @@ for (keys %product_map) { print "\n"; } +#for (keys %title_dict) { +# print "$_ " if ($title_dict{$_} / $total_titles >= 0.5); +#} +# for (split(" ", $title)) { +# if (! $title_dict{$_}) { +# $title_dict{$_} = 0; +# } +# $title_dict{$_}++; +# } +# $total_titles++; +#print "\n"; + # # Best Buy #