from getrails.duckduckgo.search import go_duck
from getrails.google.search import go_gle
from getrails.vidalia.search import go_onion
from urllib import error

def search (query):
    result = []
    try:
        result = go_gle(query)
    except error.HTTPError:
        result = go_duck(query)

    return result
