<gh_stars>0
from url_parser.parsers import Parser


def parse(url, no_cache=False, cache_ttl=None):
    parser = Parser.create(url)
    if no_cache:
        parser.use_cache = False
    if cache_ttl is not None:
        parser.cache.ttl = cache_ttl
    parser.parse()
    return parser.data

from url_parser.parsers import Parser


def parse(url, no_cache=False, cache_ttl=None):
    parser = Parser.create(url)
    if no_cache:
        parser.use_cache = False
    if cache_ttl is not None:
        parser.cache.ttl = cache_ttl
    parser.parse()
    return parser.data