root/Web-Scraper/trunk/Changes

Revision 2352 (checked in by miyagawa, 13 years ago)

fix absolute URI bug with nested scrapers

Line 
1 Revision history for Perl extension Web::Scraper
2
3 0.18
4         - Fixed a bug where URI is not absolutized when scraper is nested
5
6 0.17  Wed Sep 19 19:12:25 PDT 2007
7         - Reverted Term::Encoding support since it causes segfaults
8           (double utf-8 encoding) in some environment
9
10 0.16  Tue Sep 18 04:48:47 PDT 2007
11         - Support 'RAW' and 'TEXT' for TextNode object
12         - Call Term::Encoding from scraper shell if installed
13
14 0.15  Sat Sep 15 21:28:10 PDT 2007
15         - Call env_proxy in scraper CLI
16         - Added $Web::Scraper::UserAgent and $scraper->user_agent accessor to deal
17           with UserAgent object
18         - Don't escape non-ASCII characters into &#xXXXX; in scraper shell 's' and WARN
19
20 0.14  Fri Sep 14 16:06:20 PDT 2007
21         - Fix bin/scraper to work with older Term::ReadLine.
22           (Thanks to Tina Müller [RT:29079])
23         - Now link elements like img@src and a@href are automatically
24           converted to absolute URI using the current URI as a base.
25           Only effective when you do $s->scrape(URI) or $s->scrape(\$html, URI)
26         - Added 'HTML' and its alias 'RAW' to get the HTML chunk inside the tag
27             process "script", "code" => 'RAW';
28           Handy if you want the raw HTML code inside <script> or <style>.
29           (Thanks to charsbar for the suggestion)
30
31 0.13  Sun Sep  2 17:11:08 PDT 2007
32         - Added 'c' and 'c all' command to scraper to generate the
33           code to replay the session
34         - Added 'WARN' as a shortcut to sub { warn $_->as_HTML } on scraper shell like:
35             process "a", WARN; # print 'a' elements as HTML
36         - Added 'search-cpan.pl' and 'rel-tag.pl' to eg/
37
38 0.12  Thu Aug 30 02:39:44 PDT 2007
39         - Added 's' command to scraper to get the HTML source
40         - You can use $tree variable to deal with the HTML::Element object in scraper shell
41         - Give a graceful error message if the given Selector/XPath doesn't compile
42         - Give a better error when number of args in process() seems wrong
43
44 0.11  Tue Aug 28 02:50:01 PDT 2007
45         - Supported hash-reference in process values, like
46           process "a", "people[]", { link => '@href', name => 'TEXT' };
47           See t/09-process_hash.t for its usage.
48
49 0.10  Mon Aug 27 00:53:51 PDT 2007
50         - result now returns the entire stash if called without keys
51         - added bin/scraper CLI
52
53 0.09  Wed Aug 15 10:51:14 PDT 2007
54         - remove Devel::Leak use from tests
55
56 0.08  Tue Aug 14 13:25:16 PDT 2007
57         - Call $tree->delete after the callback to avoid memory leaks by TreeBuilder.
58           (Thanks to k.daiba for the report)
59
60 0.07  Sat May 12 16:23:51 PDT 2007
61         - Updated dependencies for HTML::TreeBuilder::XPath
62
63 0.06  Sat May 12 15:47:27 PDT 2007
64         - Now don't use decoded_content to work with new H::R::Encoding
65
66 0.05  Wed May  9 18:21:22 PDT 2007
67         - Added (less DSL-ish) Web::Scraper->define(sub { ... }) syntax
68         - Fixed bug where the module dies if there's no encoding found in HTTP response headers
69         - Added more examples in eg/
70         - When we get value using callback, pass HTML::Element object as $_, in addition to $_[0]
71           (Suggested by Matt S. Trout)
72         - If the expression (1st argument to process()) starts with "/", it's
73           treated as a direct XPath and no Selector-to-XPath conversion is done.
74
75 0.04  Wed May  9 00:55:32 PDT 2007
76         - *API CHANGE* Now scraper {} returns Web::Scraper object and not closure.
77           You should call ->scrape() to get the response back.
78           (Suggested by Marcus Ramberg)
79
80           I loved the code returning closure, but this is more compatible to
81           scrapi.rb API and hopefully less confusing to people.
82
83 0.03  Tue May  8 23:04:13 PDT 2007
84         - use 'TEXT' rather than 'content' to grab text from element
85           to be more compatible with scrapi
86         - Added unit tests using Test::Base
87         - Refactored internal code for easier reading
88         - chained callbacks are now passed HTML::Element, not HTML, to avoid double HTML parsing
89         - Implemented callbacks (iterator) API
90         - Added 'process_first' to be compatible with scrapi
91
92 0.02  Tue May  8 20:03:37 PDT 2007
93         - Added dependencies to Makefile.PL
94
95 0.01  Tue May  8 04:05:59 2007
96         - original version
Note: See TracBrowser for help on using the browser.