예제 #1
0
파일: main.py 프로젝트: chatea/NewsMap
def parseHardcodeUrl():
    url = "http://www.appledaily.com.tw/realtimenews/section/hot/"
    result = fetchWeb.parse_single_url(url)
    if result:
        return "Parse single url succeed: " + url
    else:
        return "Parse single url failed... " + url
예제 #2
0
def parseHardcodeUrl():
    url = "http://www.appledaily.com.tw/realtimenews/section/hot/"
    result = fetchWeb.parse_single_url(url)
    if result:
        return "Parse single url succeed: " + url
    else:
        return "Parse single url failed... " + url
예제 #3
0
파일: main.py 프로젝트: chatea/NewsMap
def parseSingleUrl():
    url = request.args.get("url")
    if url == None or url == "":
        return "There is no URL to parse"
    result = fetchWeb.parse_single_url(url)
    if result:
        return "Parse single url succeed: " + url
    else:
        return "Parse single url failed... " + url
예제 #4
0
def parseSingleUrl():
    url = request.args.get("url")
    if url == None or url == "":
        return "There is no URL to parse"
    result = fetchWeb.parse_single_url(url)
    if result:
        return "Parse single url succeed: " + url
    else:
        return "Parse single url failed... " + url