def process_chunk(pks, ignore_result=True): #objs = Amazon_NR.objects.filter(pk__in=pks) print 'Gonna process a chunk of ' + str(len(pks)) for p in pks: print p objs = AmazonTradeIn.objects.filter(productcode=p) for obj in objs: print obj amazon.parseUsedPage(obj)
def detailTheBook(am): amazon.parseUsedPage(am)