import requests


def is_private(username):
    """
    Check if user is private
    :param username:
    :return: bool
    """
    r = requests.get(f"https://www.instagram.com/{username}/?__a=1")
    private_status = r.json()['graphql']['user']['is_private']
    return private_status