Subversion Repositories SmartDukaan

Rev

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

Rev 17262 Rev 17295
Line 166... Line 166...
166
                
166
                
167
            except Exception as e:
167
            except Exception as e:
168
                print "Exception snapdeal"
168
                print "Exception snapdeal"
169
                print e
169
                print e
170
            
170
            
171
            url="http://www.snapdeal.com/acors/json/v2/gvbps?supc=%s&catUrl=&bn=&catId=175&start=0&count=10000"%(data['identifier'])
171
            url="http://www.snapdeal.com/acors/json/v2/gvbps?supc=%s&catUrl=&bn=&catId=175&start=0&count=10000&scoreCategoryUrl=mobiles-mobile-phones&make2Order=false&auto=false&isO2OVendorRequired=true"%(data['identifier'])
172
            req = urllib2.Request(url,headers=headers)
172
            req = urllib2.Request(url,headers=headers)
173
            response = urllib2.urlopen(req)
173
            response = urllib2.urlopen(req)
174
            snapdeal_data = response.read()
174
            snapdeal_data = response.read()
175
            encoding =  chardet.detect(snapdeal_data)
175
            encoding =  chardet.detect(snapdeal_data)
176
            try:
176
            try: