from io import BytesIO
from io import StringIO
from zipfile import ZipFile
import requests


def get_zip_file(url, filepath):
    """Gets zip file from url.
    Args:
        url: A string, the url of zip file.
        filepath: A string, the file path inside the zip file.
    Returns:
        A String, the content of wanted file.
    """


    zipfile = ZipFile(BytesIO(requests.get(url).content))
    file = zipfile.open(filepath).read().decode('utf8')

    return StringIO(file)