Debian Codegraph @

README

raw
1
2 WWW::Search and AutoSearch and WebSearch
3 ========================================
4
5
6 WHAT IS NEW IN WWW::Search 2.507? (2008-11-29)
7 -----------------------------------------------
8
9 Overview of changes:
10
11 * tweaked WWW::Search::Test
12
13 For details, see the Changes file (updates after 2008-11-27) and/or
14 the pod of each affected module.
15
16
17 WHAT IS WWW::Search?
18 --------------------
19
20 WWW::Search is a collection of Perl modules which provide an API to
21 search engines on the world-wide web (and similar HTTP-based search
22 engines). Backends for many specific engines can be obtained
23 separately, such as AltaVista, Ebay, HotBot, and Yahoo. This
24 distribution includes two applications built from this library:
25 AutoSearch, a program to automate tracking of search results over
26 time; and WebSearch, a small demonstration program to drive the
27 library.
28
29 By default, WWW::Search does NOT try to emulate the default search
30 that you would get with each search engine's GUI. I.e. WWW::Search
31 does NOT necessarily return the same results you would get by visiting
32 the search engine's web page. WWW::Search performs the search in a
33 way that is efficient and convenient for text processing. This might
34 include using the "advanced search" interface; getting "text-only"
35 pages; making "OR" the default query term operator instead of "AND";
36 ungrouping same-site results; making sure descriptions are turned on;
37 and increasing the number of hits per page, among other tricks. A few
38 backends implement the method gui_query(), which does attempt to get
39 the same results as searches from the engine's default web page; after
40 installation, see `perldoc WWW::Search::<Backend>` for details.
41
42 Because WWW::Search depends on parsing the HTML output of web search
43 engines, it will fail if the search engine operators change their
44 format.
45
46 This base WWW::Search distribution contains a few backends that can be
47 used for testing. The backend Null::Empty always returns no results;
48 Null::Error always returns an error condition; and Null::Count returns
49 a number of sample results that you can specify. After installation,
50 consult `perldoc WWW::Search::Null::Count` et al. for details.
51
52 The following real, working backends (and more!) are registered at
53 CPAN independently (not included with this WWW::Search distribution):
54
55 AltaVista http://www.perl.com/CPAN/modules/by-module/WWW/MTHURN/
56 AP in the WWW::Search::News distribution
57 Ebay http://www.perl.com/CPAN/modules/by-module/WWW/MTHURN/
58 Ebay::Motors in the Ebay distribution
59 Ebay::Complete in the WWW-Ebay distribution
60 Ebay::Mature in the WWW-Ebay distribution
61 Euroseek http://www.perl.com/CPAN/modules/by-module/WWW/JSMYSER/
62 Go http://www.perl.com/CPAN/modules/by-module/WWW
63 GoTo http://www.perl.com/CPAN/modules/by-module/WWW/JSMYSER/
64 HotBot http://www.perl.com/CPAN/modules/by-module/WWW/
65 LookSmart http://www.perl.com/CPAN/modules/by-module/WWW/JSMYSER
66 Lycos http://www.perl.com/CPAN/modules/by-module/WWW/MTHURN/
67 Magellan http://www.perl.com/CPAN/modules/by-module/WWW/MTHURN/
68 Monster http://www.perl.com/CPAN/modules/by-module/WWW
69 Nomade http://www.perl.com/CPAN/modules/by-module/WWW
70 NorthernLight http://www.perl.com/CPAN/modules/by-module/WWW/JSMYSER/
71 OpenDirectory http://www.perl.com/CPAN/modules/by-module/WWW/JSMYSER/
72 PRWire http://www.perl.com/CPAN/modules/by-module/WWW
73 Pubmed http://www.perl.com/CPAN/modules/by-module/WWW
74 Yahoo http://www.perl.com/CPAN/modules/by-module/WWW
75 ZDNet http://www.perl.com/CPAN/modules/by-module/WWW/JSMYSER/
76 WashPost in the WWW::Search::News distribution
77
78 There are several backends which I don't even know if they work or
79 not; I put them in a distribution called WWW::Search::Backends which
80 you can find at http://www.perl.com/CPAN/modules/by-module/WWW
81
82 There are even more backends available for manual download and
83 installation at http://www.idexer.com/backends/ (thanks to Jim Smyser).
84
85
86 REQUIREMENTS
87 ------------
88
89 WWW::Search requires Perl5, the libwww-perl module suite, the URI
90 module, the HTML::Parser module, and several other modules (see
91 Makefile.PL for a complete list). For information on Perl5, see
92 <http://www.perl.com>. For modules, see
93 <http://www.perl.com/CPAN/modules>.
94
95
96 AVAILABILITY
97 ------------
98
99 The latest version of WWW::Search is always available on CPAN. Here
100 is a good URL for finding it:
101 http://www.perl.com/CPAN/modules/by-module/WWW
102
103
104 INSTALLATION
105 ------------
106
107 It is highly recommended that you use CPAN.pm to install WWW::Search.
108 It will automatically install all the prerequisite modules and put
109 everything in the right places. While connected to the internet, just
110 type
111
112 perl -MCPAN -e 'install WWW::Search'
113
114 Otherwise, you can install WWW::Search as you would any perl module
115 library, by running the following commands in the WWW-Search-x.xx
116 directory after unpacking the archive (and after installing all the
117 prerequisite modules):
118
119 perl Makefile.PL
120 make test
121 make install
122
123 On Win32, use 'nmake' instead of 'make' in the above sequence of
124 commands.
125
126 If you want to install a private copy of WWW::Search in your home
127 directory, then you should do the installation with something like
128 these commands:
129
130 perl Makefile.PL INSTALLDIRS=perl PREFIX=/my/perl/lib
131 make test
132 make pure_perl_install UNINST=1
133
134 Don't forget to add /my/perl/lib to your PERL5LIB environment variable
135 (or use lib '/my/perl/lib'; or unshift @INC, '/my/perl/lib')!
136
137
138 WHAT IS AutoSearch?
139 -------------------
140
141 The WWW::Search distribution includes a search client called
142 AutoSearch. AutoSearch performs a web-based search and puts the
143 results set into a series of web pages. It periodically updates this
144 web page, indicating how the search changes over time. Sample output
145 from AutoSearch can be found at
146 <http://www.isi.edu/lsam/tools/autosearch/>. Output format is
147 configurable.
148
149 See `perldoc AutoSearch` for details, or the DEMONSTRATION section
150 below for quick-start instructions.
151
152
153 DISCUSSION, BUG REPORTS, AND IMPROVEMENTS
154 -----------------------------------------
155
156 When submitting a bug report or request for help, please remember to
157 include:
158 - the operating system name and version
159 - the version of perl (this can be found from `perl -v`)
160 - the version of WWW::Search (this can be found from `WebSearch -V`)
161 - the version of the backend (this can be found from `WebSearch -e Yahoo -V`)
162 - the code you ran to produce the error (PLEASE cut-and-paste, do not just summarize!)
163 - actual output showing the error (PLEASE cut-and-paste, do not just summarize!)
164
165 There is a mailing list for WWW::Search discussion. To subscribe,
166 send "subscribe info-www-search" as the body of a message to
167 <[email protected]>. If you use WWW::Search at all, you
168 should subscribe to the mailing list.
169
170 Feedback about WWW::Search is encouraged. If you're using it for a
171 neat application, please let us know. If you'd like to (or have
172 already) implement and publish a new backend for WWW::Search, let us
173 know so we don't duplicate work. <[email protected]>
174
175 Backend-related bug reports ("backend ABC doesn't work") should be
176 sent to the author/maintainer of the backend (backend maintainers are
177 identified in the corresponding man page).
178
179 All other feedback, bug reports, fixes, and new backends (if you are
180 unwilling or unable to publish them on CPAN yourself) should be sent
181 to Martin Thurn <[email protected]>. When sending e-mail, please please
182 put [WWW-Search] in the subject line (or risk me losing the message
183 among the spam).
184
185
186 DEMONSTRATION
187 -------------
188
189 After installing the distribution, connect to the internet and type:
190
191 # WebSearch '"Your Name Here"'
192
193 or, if you are on Win32:
194
195 C:\> WebSearch "\"Your Name Here\""
196
197 to see where your name is mentioned on the web. Then try:
198
199 # AutoSearch -n me_on_the_web -s '"Your Name Here"' me
200 # netscape me/index.html &
201
202 or, if you are on Win32:
203
204 C:\> AutoSearch -n me_on_the_web -s "\"Your Name Here\"" me
205 C:\> netscape me\index.html
206
207 If you are on UNIX you can add
208
209 0 3 * * 1 /usr/local/bin/AutoSearch /path/to/me
210
211 to your crontab to update this search every week at 3:00 Monday
212 morning. If you install WWW::Search::Ebay, and add the --mail option
213 to AutoSearch, you'll have your own private replacement for Ebay's
214 personal search service... WITHOUT the three-query limit!
215
216
217 DOCUMENTATION
218 -------------
219
220 See `perldoc WWW::Search` after installation for an overview of the
221 library. POD-style documentation is also included in all modules and
222 programs, so you can do `perldoc WebSearch` and `perldoc AutoSearch`
223 after installation.
224
225
226 FUTURE PLANS
227 ------------
228
229 Some things we need, and ideas for new features:
230
231 - more robust test mechanism (i.e. more than just counting the number
232 of URLs returned) (e.g. look at the various values and make sure
233 they're being parsed correctly) (e.g. change_date() is really a date,
234 URL is really a URL, URL is not double-encoded, results are not
235 duplicated, etc.) Contact <[email protected]>
236
237 - updates to each backend to implement the submit() method. Contact
238 each backend's maintainer.
239
240 - updates to each backend that will force WWW::Search to perform the
241 same search as the engine's default web GUI (I'm looking for
242 contributions of the precise arguments that will produce such a search
243 for each engine; i.e. the hash that should be passed as the second
244 argument to native_query). Contact <[email protected]>
245
246 - test cases for WebSearch. Contact <[email protected]>
247
248 - test cases for AutoSearch. Contact <[email protected]>
249
250 - use LWP::ParallelUA to speed up multiple backend search requests
251 (I'm trying to decide what the API interface will look like; please
252 send suggestions). Contact <[email protected]>
253
254 - add a "language" parameter to the WWW::Search object? We would
255 need a critical mass of backends/engines that can search multiple
256 languages before this would be useful.
257
258 - more widespread use of result tags such as description, date, size,
259 etc. across all backends. Contact backend maintainers.
260
261 - a freeze/restore interface to suspend and resume in-progress queries.
262
263 - more backends!
264
265 Contributions are always welcome. Send me e-mail if you plan a new
266 backend, or to discuss architectural changes (to avoid duplicating
267 work). Contact <[email protected]>
268
269
270 SUPPORT AND CREDITS
271 -------------------
272
273 For more information about Martin Thurn's Perl Modules,
274 visit http://www.sandcrawler.com/SWB/cpan-modules.html
275
276 The WWW::Search architecture was originally written by John Heidemann,
277 with feedback from other contributors listed below. NOTE: This list
278 is no longer updated; consult the on-line documentation (i.e. man
279 pages) to find out who is currently maintaining each component.
280
281 PLATFORM SUPPORT:
282 Unix John Heidemann <johnh(at)isi.edu>
283 Windows Jim Smyser <jsmyser(at)bigfoot.com>
284 (see <http://members.xoom.com/WWW_Search>)
285
286 COOKIE & HTTP_REFERER TESTING: Jerry Hermel <jerryxh(at)earthlink.net>
287
288 APPLICATIONS:
289 WebSearch John Heidemann
290 AutoSearch William Scheding <wls(at)isi.edu>
291
292 BACKENDS:
293 AltaVista John Heidemann
294 Dejanews Cesare Feroldi de Rosa <C.Feroldi(at)it.net>
295 and Martin Thurn <[email protected]>
296 Crawler Andreas Borchert
297 Excite GLen Pringle <pringle(at)cs.monash.edu.au>
298 and Martin Thurn
299 ExciteForWebServers Paul Lindner <lindner(at)reliefweb.int>
300 Fireball Andreas Borchert
301 FolioViews Paul Lindner
302 Gopher Paul Lindner
303 HotBot William Scheding and Martin Thurn
304 HotFiles Jim Smyser
305 Infoseek Cesare Feroldi de Rosa and Martin Thurn
306 Livelink Paul Lindner
307 Lycos William Scheding and John Heidemann,
308 Martin Thurn
309 Magellan Martin Thurn
310 MSIndexServer Paul Lindner
311 NorthernLight Jim Smyser
312 Null Paul Lindner
313 OpenDirectory Jim Smyser
314 PLWeb Paul Lindner
315 Profusion Jim Smyser
316 Search97 Paul Lindner
317 SFgate Paul Lindner
318 Simple Paul Lindner
319 Snap Jim Smyser
320 Verity Paul Lindner
321 WebCrawler Martin Thurn
322 Yahoo William Scheding and Martin Thurn
323 ZDNet Jim Smyser
324
325 AutoSearch is based on an earlier implementation by Kedar Jog
326 <jog(at)isi.edu> with advice from Joe Touch <touch(at)isi.edu>.
327
328 Bugs and extensions (to the software and documentation) have been
329 identified by William Scheding <wls(at)isi.edu>, T. V. Raman
330 <raman(at)adobe.com> (proxy support), C. Feroldi
331 <C.Feroldi(at)it.net>, Larry Virden <lvirden(at)cas.org>, Paul Lindner
332 <paul.lindner(at)itu.int>, Guy Decoux <decoux(at)moulon.inra.fr>, R
333 Chandrasekar (Mickey) <mickeyc(at)linc.cis.upenn.edu>, Martin Thurn
334 <mthurn(at)cpan.org>, Chris Nandor <pudge(at)pobox.com>, Martin
335 Valldeby <martin.valldeby(at)pakom.se>, Jim Smyser
336 <jsmyser(at)bigfoot.com>, Darren Stalder <darren(at)u.washington.edu>,
337 Neil Bowers <neilb(at)cre.canon.co.uk>, Ave Wrigley
338 <wrigley(at)cre.canon.co.uk>, Andreas Borchert
339 <borchert(at)mathematik.uni-ulm.de>, Jim Smyser
340 <jsmyser(at)bigfoot.com>.
341
342 Bugs have reported by Joseph McDonald <joe(at)smartlink.net>, Juan
343 Jose Amor <jjamor(at)infor.es>, Bowen Dwelle <bowen(at)hotwired.com>,
344 Vassilis Papadimos <vpapad(at)dblab.ece.ntua.gr>, Vidyut Luther
345 <vluther(at)hpctc.org>, Chris P. Acantilado
346 <cacantil(at)spawar.navy.mil>.
347
348
349 COPYRIGHT
350 ---------
351
352 Copyright (c) 1996 University of Southern California.
353 All rights reserved.
354
355 Redistribution and use in source and binary forms are permitted
356 provided that the above copyright notice and this paragraph are
357 duplicated in all such forms and that any documentation, advertising
358 materials, and other materials related to such distribution and use
359 acknowledge that the software was developed by the University of
360 Southern California, Information Sciences Institute. The name of the
361 University may not be used to endorse or promote products derived from
362 this software without specific prior written permission.
363
364 THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
365 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
366 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
367
368
369 Portions of this README were derived from the README for libwww-perl.
370