def search(self, terms):
        torrents = []
        url = self.search_uri % quote_plus(terms)
        try:
            f = urlopen(url)
            soup = BeautifulStoneSoup(f.read())
            for item in soup.findAll('item'):
                torrents.append({
                    'url': item.enclosure['url'],
                    'name': item.title.text,
                    'seeds': int(item.find('torrent:seeds').text),
                    'leechers': int(item.find('torrent:peers').text),
                })
        except __HOLE__ as e:
            if e.code == 404:
                pass
            else:
                raise
        return torrents
dataset/ETHPy150Open correl/Transmission-XBMC/resources/lib/search.py/Kickass.search