giphypop.py
def screensaver(self, tag=None, strict=False):
        """
        Returns a random giphy image, optionally based on a search of a given tag.
        Note that this method will both query for a screensaver image and fetch the
        full details of that image (2 request calls)

        :param tag: Tag to retrieve a screensaver image
        :type tag: string
        :param strict: Whether an exception should be raised when no results
        :type strict: boolean
        """
        params = {'tag': tag} if tag else {}
        resp = self._fetch('screensaver', **params)

        if resp['data'] and resp['data']['id']:
            return self.gif(resp['data']['id'])
        elif strict or self.strict:
            raise GiphyApiException(
                "No screensaver GIF tagged '%s' found" % tag)
def screensaver(self, tag=None, strict=False):
        """
        Returns a random giphy image, optionally based on a search of a given tag.
        Note that this method will both query for a screensaver image and fetch the
        full details of that image (2 request calls)

        :param tag: Tag to retrieve a screensaver image
        :type tag: string
        :param strict: Whether an exception should be raised when no results
        :type strict: boolean
        """
        params = {'tag': tag} if tag else {}
        resp = self._fetch('screensaver', **params)

        if resp['data'] and resp['data']['id']:
            return self.gif(resp['data']['id'])
        elif strict or self.strict:
            raise GiphyApiException(
                "No screensaver GIF tagged '%s' found" % tag)
def screensaver ( self , tag = None , strict = False ) : params = { 'tag' : tag } if tag else { } resp = self . _fetch ( 'screensaver' , * * params ) if resp [ 'data' ] and resp [ 'data' ] [ 'id' ] : return self . gif ( resp [ 'data' ] [ 'id' ] ) elif strict or self . strict : raise GiphyApiException ( "No screensaver GIF tagged '%s' found" % tag )
Returns a random giphy image, optionally based on a search of a given tag.
        Note that this method will both query for a screensaver image and fetch the
        full details of that image (2 request calls)

        :param tag: Tag to retrieve a screensaver image
        :type tag: string
        :param strict: Whether an exception should be raised when no results
        :type strict: boolean
Returns a random giphy image optionally based on a search of a given tag . Note that this method will both query for a screensaver image and fetch the full details of that image ( 2 request calls )