def get_wget_download_size(command):
    """Get the whole download size in bytes.

    :param str command: Wget command.

    :return: The actual download size in bytes.
    :rtype: int
    """
    # Wget supports HTTP, HTTPS and FTP protocols.
    if not command.startswith('wget '):
        return 0

    # Check the url(s) is/are valid.
    urls = re.findall(r'((?:https|http|ftp)://[^\s]+)', command)

    if not urls:
        return 0

    size = 0
    for url in urls:
        try:
            response = urllib2.urlopen(url)
            size += int(response.info().getheader('Content-Length'))
        except (urllib2.HTTPError, urllib2.URLError, ValueError, __HOLE__):
            pass
    return size
dataset/ETHPy150Open owtf/owtf/install/space_checker_utils.py/get_wget_download_size