scrapeit/scrapeit/torrent.py

19 lines
405 B
Python

# -*- Mode: Python; -*-
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
import mininova
import btjunkie
import thepiratebay
def search(query):
'''meta function to search with the best known torrent search engine
'''
return btjunkie.search(query)
def searchByImdb(imdb):
'''meta function to search by imdb with the best known torrent search engine
'''
return mininova.searchByImdb(imdb)