def get_bug_id_from_url(url):
    """ Return the bug identifier for a given URL.

    :arg url: the url of the ticket

    """
    bugid = url.rsplit('/', 1)[-1]
    if 'id=' in url:
        bugid = url.split('id=', 1)[1]
    return bugid
