import re


def parse_url(url, quadkey_zoom):
    """Parse quadkey from url
    """
    name = url.split('/')[-1]
    match = re.findall(r'([0-3]{{{0}}})'.format(quadkey_zoom), name)
    qk = match[-1]
    return qk