def share_code_from_url(self, url: str) -> str:
        """
        Get Share code from URL

        Parameters
        ----------
        url: str
            URL of the share object

        Returns
        -------
        str
            Share code
        """
        path = urlparse(url).path
        parts = [p for p in path.split("/") if p]
        return parts.pop()

        Get Share code from URL

        Parameters
        ----------
        url: str
            URL of the share object

        Returns
        -------
        str
            Share code
        
instagrapi/mixins/share.py