Changeset 45
- Timestamp:
- 10/08/06 19:26:00 (7 years ago)
- Files:
-
- 2 added
- 3 modified
-
grabbers/abc2_website (modified) (6 diffs)
-
grabbers/abc2_website.conf (added)
-
grabbers/abc_website (modified) (6 diffs)
-
grabbers/abc_website.conf (added)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grabbers/abc2_website
r7 r45 12 12 # 1.51 02oct06 --ready option 13 13 # 1.52 03oct06 split out abc grabber into its own grabber 14 # 1.55 09oct06 formalize --cheap option 14 15 15 16 use strict; 16 17 17 18 my $progname = "abc2_website"; 18 my $version = "1.5 4_03oct06";19 my $version = "1.55_00oct06"; 19 20 20 21 use LWP::UserAgent; … … 62 63 my $opt_channels_file= ""; 63 64 my $opt_no_cache = 0; 65 my $opt_cheap = 0; 64 66 my $opt_fast = 0; 65 67 my $opt_warper = 0; … … 87 89 'fast' => \$opt_fast, 88 90 'no-cache' => \$opt_no_cache, 91 'cheap' => \$opt_cheap, 89 92 'debug+' => \$debug, 90 93 'warper' => \$opt_warper, … … 120 123 $starttime += (86400 * $opt_offset); 121 124 122 &log(sprintf "going to grab %s%d%s days%s of data into %s (%s%s%s)", 125 &log(sprintf "going to %s %s%d%s days%s of data into %s (%s%s%s)", 126 ($opt_cheap ? "verify (cache-validate)" : "grab"), 123 127 ($opt_no_extra_days ? "" : "somewhere between "), 124 128 $opt_days, … … 160 164 --config-file=file (ignored - historically used by grabbers not not this one) 161 165 --no-cache don't use a cache to optimize (reduce) number of web queries 166 --cheap validate contents of cache - fetch summary only, not details 162 167 --cache-file=file where to store cache (default "$opt_cache_file") 163 168 --fast don't run slow - get data as quick as you can - not recommended … … 306 311 &add_cached_data($channel,$starttime,$cache_key); 307 312 } else { 308 &get_one_abc_event($channel, $cache_key, $unprocessed_url[$i], "$xmlid detail pages ($i of $unprocessed_programmes)") ;313 &get_one_abc_event($channel, $cache_key, $unprocessed_url[$i], "$xmlid detail pages ($i of $unprocessed_programmes)") if (!$opt_cheap); 309 314 } 310 315 } -
grabbers/abc_website
r6 r45 12 12 # 1.51 02oct06 --ready option 13 13 # 1.52 03oct06 split out abc grabber into its own grabber 14 # 1.55 09oct06 formalize --cheap option 14 15 15 16 use strict; 16 17 17 18 my $progname = "abc_website"; 18 my $version = "1.5 3_03oct06";19 my $version = "1.55_09oct06"; 19 20 20 21 use LWP::UserAgent; … … 62 63 my $opt_channels_file= ""; 63 64 my $opt_no_cache = 0; 65 my $opt_cheap = 0; 64 66 my $opt_fast = 0; 65 67 my $opt_warper = 0; … … 87 89 'fast' => \$opt_fast, 88 90 'no-cache' => \$opt_no_cache, 91 'cheap' => \$opt_cheap, 89 92 'debug+' => \$debug, 90 93 'warper' => \$opt_warper, … … 120 123 $starttime += (86400 * $opt_offset); 121 124 122 &log(sprintf "going to grab %s%d%s days%s of data into %s (%s%s%s)", 125 &log(sprintf "going to %s %s%d%s days%s of data into %s (%s%s%s)", 126 ($opt_cheap ? "verify (cache-validate)" : "grab"), 123 127 ($opt_no_extra_days ? "" : "somewhere between "), 124 128 $opt_days, … … 160 164 --config-file=file (ignored - historically used by grabbers not not this one) 161 165 --no-cache don't use a cache to optimize (reduce) number of web queries 166 --cheap validate contents of cache - fetch summary only, not details 162 167 --cache-file=file where to store cache (default "$opt_cache_file") 163 168 --fast don't run slow - get data as quick as you can - not recommended … … 304 309 &add_cached_data($channel,$starttime,$cache_key); 305 310 } else { 306 &get_one_abc_event($channel, $cache_key, $unprocessed_url[$i], "$xmlid detail pages ($i of $unprocessed_programmes)") ;311 &get_one_abc_event($channel, $cache_key, $unprocessed_url[$i], "$xmlid detail pages ($i of $unprocessed_programmes)") if (!$opt_cheap); 307 312 } 308 313 } -
status
r44 r45 2 2 rex:3.0.1:grabber 3 3 oztivo:0.4:grabber 4 abc_website:1.5 3:grabber5 abc2_website:1.5 4:grabber4 abc_website:1.55:grabber 5 abc2_website:1.55:grabber 6 6 yahoo7widget:1.53:grabber 7 7 jrobbo:0.01:grabber
