예제 #1
0
파일: api.py 프로젝트: 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)))
예제 #2
0
파일: api.py 프로젝트: 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)