perceval/backends/core/googlehits.py
def hits(self, keywords):
        """Fetch information about a list of keywords."""

        if len(keywords) == 1:
            query_str = keywords[0]
        else:
            query_str = ' '.join([k for k in keywords])

        logger.info("Fetching hits for '%s'", query_str)
        params = {'q': query_str}

        # Make the request
        req = self.fetch(GOOGLE_SEARCH_URL, payload=params)

        return req.text
def hits(self, keywords):
        if len(keywords) == 1:
            query_str = keywords[0]
        else:
            query_str = ' '.join([k for k in keywords])

        logger.info("Fetching hits for '%s'", query_str)
        params = {'q': query_str}

        # Make the request
        req = self.fetch(GOOGLE_SEARCH_URL, payload=params)

        return req.text
def hits ( self , keywords ) : if len ( keywords ) == 1 : query_str = keywords [ 0 ] else : query_str = ' ' . join ( [ k for k in keywords ] ) logger . info ( "Fetching hits for '%s'" , query_str ) params = { 'q' : query_str } # Make the request req = self . fetch ( GOOGLE_SEARCH_URL , payload = params ) return req . text
Fetch information about a list of keywords.
Fetch information about a list of keywords .