torrentfinder is a very simple script that I wrote to automate searching The Pirate Bay. You feed it a list of search phrases, and it outputs a single HTML file that contains the top matches for each search phrase, ranked by number of seeders. View the README and download (or fork!) the code from Github.
Here's the kind of output it gives you: