def validURL(targetURL):
    """Validate the target URL exists.

    In a real app you would need to do a database lookup or a HEAD request, here we just check the URL
    """
    if '/article' in targetURL:
        result = 200
    else:
        result = 404
    return result
dataset/ETHPy150Open bear/python-indieweb/indieweb.py/validURL/original