'Return a list of HTTPResponses that represent the pages returned by
the search engine when w3af performs a search.'

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

    start = 0
    result = []
    while True:
        try:
            res_page = self.page_search(query, start, 10)
        except BaseFrameworkException as w3:
            om.out.debug(str(w3))
            raise
        except Exception as e:
            msg = 'Unhandled    exception    in    SearchEngine.get_n_result_pages():    "%s"'
            om.out.debug((msg % e))
            raise
        else:
            result.extend(res_page)
            start += 10
            if (start >= limit):
                break
    return result
