def find_by_url(self, space_url, id_only=True):
        """
        Returns a space ID given the URL of the space.

        :param space_url: URL of the Space
        :param id_only: ?
        :return: space_id: Space url
        :rtype: str
        """
        resp = self.transport.GET(url='/space/url?%s' % urlencode({'url': space_url}))
        if id_only:
            return resp['space_id']
        return resp
def find_by_url ( self , space_url , id_only = True ) : resp = self . transport . GET ( url = '/space/url?%s' % urlencode ( { 'url' : space_url } ) ) if id_only : return resp [ 'space_id' ] return resp
Returns a space ID given the URL of the space.

        :param space_url: URL of the Space
        :param id_only: ?
        :return: space_id: Space url
        :rtype: str