コード例 #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)