Subversion Repositories SmartDukaan

Rev

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

Rev 14340 Rev 14341
Line 252... Line 252...
252
                                amountPaid = re.findall(r'\d+', mname[k+1].text)[0]
252
                                amountPaid = re.findall(r'\d+', mname[k+1].text)[0]
253
                            elif "Delivery:" in str(mname[k]):
253
                            elif "Delivery:" in str(mname[k]):
254
                                #Delivery Date for sub order
254
                                #Delivery Date for sub order
255
                                print "Delivery Date " +mname[k+1].text
255
                                print "Delivery Date " +mname[k+1].text
256
                        k=k+1
256
                        k=k+1
257
                    merchantsubOrder = SubOrder(productTitle, productUrl, merchantOrder.placedOn, amountPaid,MStore.ORDER_PLACED, quantity)
257
                    merchantsubOrder = SubOrder(productTitle, productUrl, merchantOrder.placedOn, int(amountPaid),MStore.ORDER_PLACED, quantity)
258
                    merchantsubOrder.imgUrl  = imgUrl
258
                    merchantsubOrder.imgUrl  = imgUrl
259
                    merchantsubOrder.productCode = productCode
259
                    merchantsubOrder.productCode = productCode
260
                    merchantsubOrder.merchantSubOrderId = merchantSubOrderId
260
                    merchantsubOrder.merchantSubOrderId = merchantSubOrderId
261
                    print "productCode", productCode
261
                    print "productCode", productCode
262
                    print "amountPaid", amountPaid
262
                    print "amountPaid", amountPaid
Line 367... Line 367...
367
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
367
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
368
    #store.flipkartOrderTracking(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
368
    #store.flipkartOrderTracking(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
369
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019365336126533&token=dbce2bd4dc4023295b436a7d3c7986c9&src=or&pr=1')
369
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019365336126533&token=dbce2bd4dc4023295b436a7d3c7986c9&src=or&pr=1')
370
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://dl.flipkart.com/orderresponse?reference_id=OD1019453634552336&token=e8e04871ad65b532aa53fa82bb34b901&src=or&pr=1')
370
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://dl.flipkart.com/orderresponse?reference_id=OD1019453634552336&token=e8e04871ad65b532aa53fa82bb34b901&src=or&pr=1')
371
    #hex_md5('spice@2020')
371
    #hex_md5('spice@2020')
372
    store.getCashbackAmount('MOBDVHC6XKKPZ3GZ', 6000)
372
    store.getCashbackAmount('MOBDVHC6XKKPZ3GZ', 5999)
373
 
373
 
374
 
374
 
375
if __name__ == '__main__':
375
if __name__ == '__main__':
376
        main()
376
        main()
377
        
377