import requests


def get_iso_size(target):
    """Returns the file size of the target URL in bytes."""
    if target.startswith("http"):
        return int(requests.get(target, stream=True)
                           .headers["Content-Length"])
    else:
        return 0