def is_url(url):
    try:
        return urlparse.urlparse(url).scheme in urlparse.uses_netloc
    except:
        return False
Check to see if a URL has a valid protocol.
dataset/ETHPy150Open daler/gffutils/gffutils/iterators.py/is_url