def share_info(self, code: str) -> Share:
        """
        Get Share object by code

        Parameters
        ----------
        code: str
            Share code

        Returns
        -------
        Share
            Share object
        """
        if isinstance(code, str):
            code = code.encode()
        # ignore example from instagram: b'highli\xb1\xdb\x1dght:17988089629383770'
        data = (
            base64.b64decode(code)
            .decode(errors="ignore")
            .replace("\x1d", "")
            .split(":")
        )
        return Share(type=data[0], pk=data[1])

        Get Share object by code

        Parameters
        ----------
        code: str
            Share code

        Returns
        -------
        Share
            Share object
        
instagrapi/mixins/share.py