Example #1
0
File: api.py Project: kleem/wli
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)))
Example #2
0
File: api.py Project: kleem/wli
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)