Changeset 45

Show
Ignore:
Timestamp:
10/08/06 19:26:00 (7 years ago)
Author:
lincoln
Message:

abc_website.conf and abc2_website.conf files

Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • grabbers/abc2_website

    r7 r45  
    1212#    1.51  02oct06      --ready option 
    1313#    1.52  03oct06      split out abc grabber into its own grabber 
     14#    1.55  09oct06      formalize --cheap option 
    1415 
    1516use strict; 
    1617 
    1718my $progname = "abc2_website"; 
    18 my $version = "1.54_03oct06"; 
     19my $version = "1.55_00oct06"; 
    1920 
    2021use LWP::UserAgent; 
     
    6263my $opt_channels_file=  ""; 
    6364my $opt_no_cache =      0; 
     65my $opt_cheap =         0; 
    6466my $opt_fast =          0; 
    6567my $opt_warper =        0; 
     
    8789        'fast'          => \$opt_fast, 
    8890        'no-cache'      => \$opt_no_cache, 
     91        'cheap'         => \$opt_cheap, 
    8992        'debug+'        => \$debug, 
    9093        'warper'        => \$opt_warper, 
     
    120123$starttime += (86400 * $opt_offset); 
    121124 
    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"), 
    123127        ($opt_no_extra_days ? "" : "somewhere between "), 
    124128        $opt_days, 
     
    160164        --config-file=file      (ignored - historically used by grabbers not not this one) 
    161165        --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 
    162167        --cache-file=file       where to store cache (default "$opt_cache_file") 
    163168        --fast                  don't run slow - get data as quick as you can - not recommended 
     
    306311                        &add_cached_data($channel,$starttime,$cache_key); 
    307312                } 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); 
    309314                } 
    310315        } 
  • grabbers/abc_website

    r6 r45  
    1212#    1.51  02oct06      --ready option 
    1313#    1.52  03oct06      split out abc grabber into its own grabber 
     14#    1.55  09oct06      formalize --cheap option 
    1415 
    1516use strict; 
    1617 
    1718my $progname = "abc_website"; 
    18 my $version = "1.53_03oct06"; 
     19my $version = "1.55_09oct06"; 
    1920 
    2021use LWP::UserAgent; 
     
    6263my $opt_channels_file=  ""; 
    6364my $opt_no_cache =      0; 
     65my $opt_cheap =         0; 
    6466my $opt_fast =          0; 
    6567my $opt_warper =        0; 
     
    8789        'fast'          => \$opt_fast, 
    8890        'no-cache'      => \$opt_no_cache, 
     91        'cheap'         => \$opt_cheap, 
    8992        'debug+'        => \$debug, 
    9093        'warper'        => \$opt_warper, 
     
    120123$starttime += (86400 * $opt_offset); 
    121124 
    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"), 
    123127        ($opt_no_extra_days ? "" : "somewhere between "), 
    124128        $opt_days, 
     
    160164        --config-file=file      (ignored - historically used by grabbers not not this one) 
    161165        --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 
    162167        --cache-file=file       where to store cache (default "$opt_cache_file") 
    163168        --fast                  don't run slow - get data as quick as you can - not recommended 
     
    304309                        &add_cached_data($channel,$starttime,$cache_key); 
    305310                } 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); 
    307312                } 
    308313        } 
  • status

    r44 r45  
    22rex:3.0.1:grabber 
    33oztivo:0.4:grabber 
    4 abc_website:1.53:grabber 
    5 abc2_website:1.54:grabber 
     4abc_website:1.55:grabber 
     5abc2_website:1.55:grabber 
    66yahoo7widget:1.53:grabber 
    77jrobbo:0.01:grabber