Subversion Repositories SmartDukaan

Rev

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

Rev 18379 Rev 18380
Line 321... Line 321...
321
                if i==0:
321
                if i==0:
322
                    continue
322
                    continue
323
                shipment = pq(shipment)
323
                shipment = pq(shipment)
324
                shipmentStatusSection = shipment('.a-section:eq(0)')
324
                shipmentStatusSection = shipment('.a-section:eq(0)')
325
                productDetails = shipment('.a-section:eq(1)>.a-row')
325
                productDetails = shipment('.a-section:eq(1)>.a-row')
326
                print shipmentStatusSection('h3').text(), shipmentStatusSection('span').text()
326
                print shipmentStatusSection('h3').text(), shipmentStatusSection('p').text(), shipmentStatusSection('span').text()
327
                for productDetail in productDetails:
327
                for productDetail in productDetails:
328
                    productDetail = pq(productDetail)
328
                    productDetail = pq(productDetail)
329
                    pImg = productDetail.children('div').eq(0)
329
                    pImg = productDetail.children('div').eq(0)
330
                    pQty = productDetail.children('div').eq(1)
330
                    pQty = productDetail.children('div').eq(1)
331
                    #print pImg('a').attr('href'), pImg('a').attr('title'), pImg('img').attr('src'), pQty('.a-row:nth-child(2)')('span').text().split(':')[1].strip(), pQty('span.currencyINR')
331
                    #print pImg('a').attr('href'), pImg('a').attr('title'), pImg('img').attr('src'), pQty('.a-row:nth-child(2)')('span').text().split(':')[1].strip(), pQty('span.currencyINR')