import requests


def get_user_id(username):
    """
    Find unique user_id from instagram user name
    :param username: str
    :return: str
    """
    r = requests.get(f"https://www.instagram.com/{username}/?__a=1")
    user_id = r.json()['graphql']['user']['id']
    return user_id