<s> """<STR_LIT>""" <EOL> import pprint <EOL> from googleapiclient . discovery import build <EOL> SHOPPING_API_VERSION = '<STR_LIT>' <EOL> DEVELOPER_KEY = '<STR_LIT>' <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> client = build ( '<STR_LIT>' , SHOPPING_API_VERSION , developerKey = DEVELOPER_KEY ) <EOL> resource = client . products ( ) <EOL> request = resource . list ( source = '<STR_LIT>' , country = '<STR_LIT>' , q = u'<STR_LIT>' ) <EOL> response = request . execute ( ) <EOL> itemsPerPage = response [ '<STR_LIT>' ] <EOL> totalItems = response [ '<STR_LIT>' ] <EOL> for i in range ( <NUM_LIT:1> , totalItems , itemsPerPage ) : <EOL> answer = raw_input ( '<STR_LIT>' % <EOL> ( i , i + itemsPerPage ) ) <EOL> if answer . strip ( ) . lower ( ) . startswith ( '<STR_LIT:n>' ) : <EOL> break <EOL> else : <EOL> request = resource . list ( source = '<STR_LIT>' , country = '<STR_LIT>' , <EOL> q = u'<STR_LIT>' , startIndex = i ) <EOL> response = request . execute ( ) <EOL> pprint . pprint ( response ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
