Subversion Repositories SmartDukaan

Rev

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

Rev 20378 Rev 20379
Line 142... Line 142...
142
            print "sku id is already updated",data['_id'] 
142
            print "sku id is already updated",data['_id'] 
143
            return
143
            return
144
    except:
144
    except:
145
        pass
145
        pass
146
    
146
    
147
    url="https://m.snapdeal.com/snap/product/getRefreshProductDetails?%s"%(data['identifier'].strip())
147
    url="https://m.snapdeal.com/snap/product/getRefreshProductDetails?supc=%s"%(data['identifier'].strip())
148
    print url
148
    print url
149
    lowestOfferPrice = 0
-
 
150
    instock = 0
-
 
151
    buyBoxPrice = 0
-
 
152
    isBuyBox = 1
-
 
153
    stock = 0
-
 
154
    try:
149
    try:
155
        req = urllib2.Request(url,headers=headers)
150
        req = urllib2.Request(url,headers=headers)
156
        response = urllib2.urlopen(req)
151
        response = urllib2.urlopen(req)
157
        snapdeal_data = response.read()
152
        snapdeal_data = response.read()
158
        response.close()
153
        response.close()