root/Web-Scraper/trunk/Changes

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

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

=== Changes
==================================================================
--- Changes (revision 6986)
+++ Changes (local)
@@ -1,5 +1,8 @@

Revision history for Perl extension Web
Scraper

+0.22 Wed Oct 17 17:51:54 PDT 2007
+ - 's' on scraper shell now prints to pager (e.g. less) if PAGER is set
+

0.21_01 Thu Oct 4 01:05:00 PDT 2007

- Added an experimental filter support

(Thanks to hirose31, tokuhirom and Yappo for brainstorming)

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