Subversion Repositories SmartDukaan

Rev

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

Rev 14123 Rev 14126
Line 42... Line 42...
42
        lowestSp = 0
42
        lowestSp = 0
43
        inStock = 0
43
        inStock = 0
44
        try:
44
        try:
45
            if data['marketPlaceUrl']!="" or data['marketPlaceUrl'] !="http://www.flipkart.com/ps/%s"%(data['identifier']):
45
            if data['marketPlaceUrl']!="" or data['marketPlaceUrl'] !="http://www.flipkart.com/ps/%s"%(data['identifier']):
46
                result = scraperProductPage.read(data['marketPlaceUrl'])
46
                result = scraperProductPage.read(data['marketPlaceUrl'])
47
                if result.get('lowestPrice')!=0:
47
                if result.get('lowestSp')!=0:
48
                    lowestSp = result.get('lowestPrice')
48
                    lowestSp = result.get('lowestSp')
49
                    inStock = result.get('inStock')
49
                    inStock = result.get('inStock')
50
        except:
50
        except:
51
            print "Unable to scrape product page ",data['identifier']
51
            print "Unable to scrape product page ",data['identifier']
52
        
52
        
53
        
53