Changeset 2254

Show
Ignore:
Timestamp:
05/10/07 10:25:20
Author:
miyagawa
Message:

Checking in changes prior to tagging of version 0.05. Changelog diff is:

=== Changes
==================================================================
--- Changes (revision 6680)
+++ Changes (local)
@@ -1,8 +1,18 @@

Revision history for Perl extension Web
Scraper

+0.05 Wed May 9 18:21:22 PDT 2007
+ - Added (less DSL-ish) Web::Scraper->define(sub { ... }) syntax
+ - Fixed bug where the module dies if there's no encoding found in HTTP response headers
+ - Added more examples in eg/
+ - When we get value using callback, pass HTML::Element object as $_, in addition to $_[0]
+ (Suggested by Matt S. Trout)
+ - If the expression (1st argument to process()) starts with "/", it's
+ treated as a direct XPath and no Selector-to-XPath conversion is done.
+

0.04 Wed May 9 00:55:32 PDT 2007

- *API CHANGE* Now scraper {} returns Web
Scraper object and not closure.
You should call ->scrape() to get the response back.
+ (Suggested by Marcus Ramberg)

I loved the code returning closure, but this is more compatible to
scrapi.rb API and hopefully less confusing to people.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/Changes

    r2240 r2254  
    11Revision history for Perl extension Web::Scraper 
     2 
     30.05  Wed May  9 18:21:22 PDT 2007 
     4        - Added (less DSL-ish) Web::Scraper->define(sub { ... }) syntax 
     5        - Fixed bug where the module dies if there's no encoding found in HTTP response headers 
     6        - Added more examples in eg/ 
     7        - When we get value using callback, pass HTML::Element object as $_, in addition to $_[0] 
     8          (Suggested by Matt S. Trout) 
     9        - If the expression (1st argument to process()) starts with "/", it's 
     10          treated as a direct XPath and no Selector-to-XPath conversion is done. 
    211 
    3120.04  Wed May  9 00:55:32 PDT 2007 
    413        - *API CHANGE* Now scraper {} returns Web::Scraper object and not closure. 
    514          You should call ->scrape() to get the response back. 
     15          (Suggested by Marcus Ramberg) 
    616 
    717          I loved the code returning closure, but this is more compatible to 
  • Web-Scraper/trunk/MANIFEST

    r2235 r2254  
    11Changes 
     2eg/dave-trailer-HD.pl 
    23eg/ebay-auction.pl 
    34eg/extract-links.pl 
     
    3132t/04_callback.t 
    3233t/05_process_first.t 
     34t/06_define.t 
    3335t/perlcriticrc 
  • Web-Scraper/trunk/lib/Web/Scraper.pm

    r2253 r2254  
    77use HTML::Selector::XPath; 
    88 
    9 our $VERSION = '0.04'; 
     9our $VERSION = '0.05'; 
    1010 
    1111sub import {