def parse_arxiv_url(url):
    """
    examples is http://arxiv.org/abs/1512.08756v2
    we want to extract the raw id and the version
    """
    _, idversion = url.rsplit('/', 1)
    pid, ver = idversion.rsplit('v', 1)
    return pid, int(ver)