'Return a list of URLs ; that represent the result to all the search.'

def get_n_results(self, query, limit=0):

    start = 0
    result = set()
    while True:
        try:
            search_results = self.search(query, start, 10)
        except BaseFrameworkException as w3:
            om.out.debug(str(w3))
            raise
        except Exception as e:
            msg = ('An    unhandled    exception    was    found    in    search_engines.SearchEngine.search():    "%s"' % str(e))
            om.out.error(msg)
            raise BaseFrameworkException(msg)
        else:
            len_before = len(result)
            result.update(list(search_results))
            len_after = len(result)
            start += 10
            if ((len_after > len_before) and (len(result) < limit)):
                continue
            break
    if result:
        om.out.debug('Search    engine    result:    ')
        for res in result:
            om.out.debug(('-    ' + res.URL))
    else:
        om.out.debug('Search    engine    returned    no    results.')
    return result
