def retrieve_page_and_identify(url): ''' Tell WLI to download the page at the given URL (HTTP only) and to run WLI's identifiers against it, then return the results to the client. ''' return json.dumps(wli.identify(wli.retrieve_page('http://'+url)))
def retrieve_page(url): ''' Tell WLI to download the page at the given URL (HTTP only) and to return it to the client. ''' return wli.retrieve_page('http://'+url)