Working Without the eBay API

Programming eBay outside the confines of the eBay API.

Consider the API to be a gift from the gods at eBay. At least in theory, the existence of the API puts an end to the need for scrapers, parsers, and other kludges.

For example, the script in [Hack #24] retrieves auction information by parsing the title of the auction page. While this works most of the time, it is susceptible to failure from even the smallest changes. Now, consider the alternative script in [Hack #86], which accomplishes the same task with more robust API calls. The API version will continue to work even if eBay dramatically changes the formatting of their auction pages (which, in fact, they did on July 7, 2003).

But the API comes at a cost. Quite a bit of setup is required (not to mention certification) before you can use the API, and it often ends up being somewhat slower than some simple parsers.

So here are some extra, non-API tools you can use to supplement (or take the place of) your API-based code.

Warning

Note that all of these come with the standard “don’t do this” clause. Not only are these types of tools unreliable by their very nature, but they also violate eBay policies.

Get eBay Hacks 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.