def user_info2(self, user_name, **kwargs):
        """
        Get user info.

        :param username: User name (not numeric ID)
        :param kwargs:
        :return:
        """
        # For authed and unauthed clients, a "fresh" rhx_gis must be used
        endpoint = 'https://www.instagram.com/{username!s}/'.format(**{'username': user_name})
        try:
            info = self._make_request(endpoint, query={'__a': '1'})
        except ClientError as ce:
            if ce.code != 403:
                raise ce
            # reinit to get a fresh rhx_gis
            self.init()
            info = self._make_request(endpoint, query={'__a': '1'})

        if self.auto_patch:
            ClientCompatPatch.user(info['graphql']['user'], drop_incompat_keys=self.drop_incompat_keys)
        return info['graphql']['user']

        Get user info.

        :param username: User name (not numeric ID)
        :param kwargs:
        :return:
        
instagram_web_api/client.py