Subversion Repositories SmartDukaan

Rev

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

Rev 13842 Rev 13845
Line 24... Line 24...
24
    flipkartBestSellers = list(get_mongo_connection().Catalog.MasterData.find({'rank':{'$gt':0},'source_id':2}))
24
    flipkartBestSellers = list(get_mongo_connection().Catalog.MasterData.find({'rank':{'$gt':0},'source_id':2}))
25
    for data in flipkartBestSellers:
25
    for data in flipkartBestSellers:
26
        inStock = 0
26
        inStock = 0
27
        retryCount = 0
27
        retryCount = 0
28
        print str(data['identifier'])
28
        print str(data['identifier'])
29
        if data['identifier'] is None or len(data['identifier'])==0:
29
        if data['identifier'] is None or len(data['identifier'].strip())==0:
30
            print "continue"
30
            print "continue"
31
            continue
31
            continue
32
        
32
        
33
        url = "http://www.flipkart.com/ps/%s"%(data['identifier'])
33
        url = "http://www.flipkart.com/ps/%s"%(data['identifier'])
34
        while(retryCount < 3):
34
        while(retryCount < 3):