Automated eBay searching using ebaysearch script

Most people know that eBay is a popular online auction site that also offers fixed price Buy It Now items for sale. If you are a collector, there is no doubt that you will spend quite a bit of time doing eBay searches manually on their website. That method has its benefits, as it allows you to see photos, for example. But if you are searching for rare items that will sell quickly, it would be good to have automatic searching. If I have understood correctly, you can set up automated searches nowadays. But I am not sure how well they behave and there is an alternative.

It is possible to access eBay's online services using your own computer programs. They provide APIs (Application Programming Interfaces) that allow you to search for items and list items as a seller. I think there is even an experimental API for doing automated buying, but I am not sure about this. I myself am a retrogame collector and interested in the 8-bit computer games from the 1980s. My collection is mostly complete, but I am still missing some very rare titles. It was getting very tedious doing the same old searches day after day, finding nothing. Then I thought that maybe the process could be automated by using some kind of a script program on Linux.

I was investigating this topic and found out that eBay offers their official APIs that you can use. I chose Python programming language because I have used that language a little bit before and it had ebaysdk-python package to make programming easier. The situation was better than I had hoped for!

So I figured out how to use the eBay API with ebaysdk and it was very easy indeed. The package is just excellent. I wrote my script ebaysearch using Python 3, the most modern major version of the programming language currently available (as of November 23rd, 2017). The script is fully configurable with a simple JSON configuration file and it uses SQLite databases for keeping track of seen items. I intended ebaysearch to be run periodically using Cron on Linux, FreeBSD, macOS or similar. I guess it will run on Windows too, but I have no interest to test it there.

Obviously this ebaysearch program is most useful when it is running on a computer that is online all the time. If you have access to such a computer, you could use it. But be warned: In order to run the script at all, you have to register as a developer on eBay's Developer site. I do not remember how to do it, but you could start by going to go.developer.ebay.com. There are three prerequisites for running my ebaysearch program:

  1. Register as "a developer" on eBay Developer Site. Don't be afraid, despite the name, you do not have to be a programmer to join.
  2. After registering, you will obtain your personal AppId. It identifies you to eBay and it is necessary so that ebaysearch program can use the eBay API at all.
  3. Having access to an outgoing email server (SMTP) so that ebaysearch can send you email notifications about newly found items. My ebaysearch program knows how to send email messages using encryption and authentication or without them. It is configurable.

So, your first goal should be to get your own personal AppId, configure ebaysearch to use it and off you go!

You can download ebaysearch-0.2.1.tar.bz2. After unpacking it, please read the README file in its entirety. The documentation is not great, but it should get you going if you know what you're doing on Linux, FreeBSD or such.