Subversion Repositories SmartDukaan

Rev

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

Rev 14121 Rev 14124
Line 135... Line 135...
135
            lowestSp = 0
135
            lowestSp = 0
136
            inStock = 0
136
            inStock = 0
137
            try:
137
            try:
138
                if data['marketPlaceUrl']!="" or data['marketPlaceUrl'] !="http://www.flipkart.com/ps/%s"%(data['identifier']):
138
                if data['marketPlaceUrl']!="" or data['marketPlaceUrl'] !="http://www.flipkart.com/ps/%s"%(data['identifier']):
139
                    result = scraperProductPage.read(data['marketPlaceUrl'])
139
                    result = scraperProductPage.read(data['marketPlaceUrl'])
-
 
140
                    print result
140
                    if result.get('lowestPrice')!=0:
141
                    if result.get('lowestPrice')!=0:
141
                        lowestSp = result.get('lowestPrice')
142
                        lowestSp = result.get('lowestPrice')
142
                        inStock = result.get('inStock')
143
                        inStock = result.get('inStock')
143
            except:
144
            except:
144
                print "Unable to scrape product page ",data['identifier']
145
                print "Unable to scrape product page ",data['identifier']