Skip to Main Content
eBay Hacks
book

eBay Hacks

by David A. Karp
August 2003
Beginner content levelBeginner
368 pages
9h 38m
English
O'Reilly Media, Inc.
Content preview from eBay Hacks

Automatic Reciprocal Feedback

Leave automatic feedback for any customer who has left positive feedback for you.

As much as you should respond quickly to any complaints lodged against you in your feedback profile, you’ll also want to leave positive reciprocal feedback for each and every positive comment you receive from buyers, as suggested by [Hack #5]. As you might expect, this is also something that can be done with the eBay API.

But let’s add a little spice to the mix. Instead of leaving the same feedback comment every time, let’s have the script choose a random comment. Start by creating a plain-text file with a handful of positive comments, one on each line:

Lightning-fast payment. Reliable buyer. Thanks for your business!
Quick to pay, friendly emails. This eBayer makes selling a pleasure!
Very fast payment, good communication. All-around excellent customer!

Save the file as prefabpraise.txt and place it in the directory specified in your config.pl file (discussed at the beginning of this chapter).

Next, take the script from [Hack #96] and replace the code between line [5] and line [6] with this code:

    if ($type eq "Praise") {
      open (INFILE,"$localdir/prefabpraise.txt");
        @line = <INFILE>;
      close (INFILE);
      chomp @line;
      $lines = @line;
      $choice = int rand ($lines);
      
      system './leavefeedback.pl', $item, $from, 'positive', $choice;
    }

Or, if you want a single script to leave positive reciprocal feedback and notify you of negative feedback, just place this code before line [5].

Note that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

eBay Hacks, 2nd Edition

eBay Hacks, 2nd Edition

David A. Karp

Publisher Resources

ISBN: 0596005644Catalog PageErrata