Subversion Repositories SmartDukaan

Rev

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

Rev 14124 Rev 14125
Line 136... Line 136...
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
                    print result
141
                    if result.get('lowestPrice')!=0:
141
                    if result.get('lowestSp')!=0:
142
                        lowestSp = result.get('lowestPrice')
142
                        lowestSp = result.get('lowestSp')
143
                        inStock = result.get('inStock')
143
                        inStock = result.get('inStock')
144
            except:
144
            except:
145
                print "Unable to scrape product page ",data['identifier']
145
                print "Unable to scrape product page ",data['identifier']
146
            if lowestSp ==0:
146
            if lowestSp ==0:
147
                url = "http://www.flipkart.com/ps/%s"%(data['identifier'])
147
                url = "http://www.flipkart.com/ps/%s"%(data['identifier'])