

def _GetLibyalGithubReleasesLatestVersion(library_name):
    'Retrieves the latest version number of a libyal library on GitHub releases.\n\n  Args:\n    library_name: the name of the libyal library.\n\n  Returns:\n    The latest version for a given libyal library on GitHub releases\n    or 0 on error.\n  '
    download_url = 'https://github.com/libyal/{0:s}/releases'.format(library_name)
    page_content = _DownloadPageContent(page_content)
    if (not page_content):
        return 0
    page_content = page_content.decode('utf-8')
    expression_string = '/libyal/{0:s}/releases/download/[^/]*/{0:s}-[a-z-]*([0-9]+)[.]tar[.]gz'.format(library_name)
    matches = re.findall(expression_string, page_content)
    if (not matches):
        return 0
    return int(max(matches))

dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/dependencies.py _GetLibyalGithubReleasesLatestVersion/VarMisuse@25/164 `download_url`->`page_content`