Subversion Repositories SmartDukaan

Rev

Rev 12403 | Rev 12408 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12403 Rev 12404
Line 390... Line 390...
390
        skuUrls.append('http://www.amazon.in/gp/offer-listing/'+item.asin+'/ref=olp_sort_ps')
390
        skuUrls.append('http://www.amazon.in/gp/offer-listing/'+item.asin+'/ref=olp_sort_ps')
391
    aggResponse = amScraper.read(skuUrls, True)
391
    aggResponse = amScraper.read(skuUrls, True)
392
 
392
 
393
    catalog_client = CatalogClient().get_client()
393
    catalog_client = CatalogClient().get_client()
394
    for val in itemInfo:
394
    for val in itemInfo:
-
 
395
        print "Trying to get details of ",val.sku
395
        if val.asin is None or len(val.asin)==0:
396
        if val.asin is None or len(val.asin)==0:
396
            continue
397
            continue
397
        scrapInfo = aggResponse.get(val.asin)
398
        scrapInfo = aggResponse.get(val.asin)
-
 
399
        print "Scraped info for asin is ",scrapInfo
398
        if val.sku in amazonLongTermActivePromotions:
400
        if val.sku in amazonLongTermActivePromotions:
399
            print "Sku in promotion, will handle it later.Moving to other..."
401
            print "Sku in promotion, will handle it later.Moving to other..."
400
            continue
402
            continue
401
        if scrapInfo is None or val.nlc==0:
403
        if scrapInfo is None or val.nlc==0:
402
            temp = []
404
            temp = []