def parse_url(url, encoding=None):
    if isinstance(url, ParseResult):
        return url
    return urlparse(to_unicode(url, encoding))
Return urlparsed url from the given argument (which could be an already
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/url.py/parse_url