Spellcheck All Your Listings

Implement passive, configurable spellchecking to create correctly-spelled listings in less time.

The success of any auction is largely due to how readily it can be found in eBay searches. As described in Chapter 2, eBay searches show only exact matches (with very few exceptions), which means, among other things, that spelling most definitely counts.

Turbo Lister and eBay’s Sell Your Item form have spellcheck features, both of which use the old-school, manual approach that forces you to interrupt your work to review each individual mistake. This hack streamlines the process by summarizing the spelling errors in all your listings in one place.

The following script requires the following modules and programs:

Table 8-2. 

Module/program name

Available at

HTML::FormatText (by Sean M. Burke)


HTML::TreeBuilder (by Sean M. Burke)


HTML::Entities (by Gisle Aas)


Lingua::Ispell (by John Porter)


ispell program (by Geoff Kuenning)


Here’s the script:

         require 'ebay.pl';

         require HTML::TreeBuilder;
         require HTML::FormatText;
         use Lingua::Ispell qw( spellcheck );

         $out1 = "";
         $outall = "";
         $numchecked = 0;
         $numfound = 0;

         $today = &formatdate(time);
         $yesterday = &formatdate(time - 86400);

         my $page_number = 1;
         while (1) {
 my $rsp = ...

Get eBay Hacks, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.