I have started a ruby class for pirate bay. Using hpricot and my lack of a better idea I am crafting and interface to pirate bay. org. It has just started and is listed in my
svn repo
There is also a pirate categories yaml file and a script to update it. The yaml file is just a ruby hash of the raw categories and organized hash. categories["Applications"]["UNIX"] == 303 . 303 is the number at the end of the browse url. I made this a config with an update script to cut down on scrapping times.
Here is a snippet of day one
pp PirateBay.get_browse_categories
pp PirateBay::Categories::ALL_CATEGORIES
pp PirateBay::Categories::TOP_LEVEL_CATEGORIES
pp PirateBay::Categories::CATEGORIES_BY_NUMBER
recents = PirateBay.recent
pp recents
pp recents.sort