Subversion Repositories SmartDukaan

Rev

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

Rev 14145 Rev 14290
Line 88... Line 88...
88
                        break
88
                        break
89
                    findMap = {"orderId": order['orderId'], "subOrders.merchantSubOrderId": merchantSubOrderId}
89
                    findMap = {"orderId": order['orderId'], "subOrders.merchantSubOrderId": merchantSubOrderId}
90
                    divs = orderItem.findAll('div', recursive=False)
90
                    divs = orderItem.findAll('div', recursive=False)
91
                    orderTracking = divs[2]
91
                    orderTracking = divs[2]
92
                    orderTrackingDetDiv = divs[3].find('div',{'class':'c-tabs-content m-top active'})
92
                    orderTrackingDetDiv = divs[3].find('div',{'class':'c-tabs-content m-top active'})
93
                    orderTrackingDet = orderTrackingDetDiv.div.text.strip()
93
                    orderTrackingDet = orderTrackingDetDiv.find('div',{'class':re.compile('tracking-remark')}).text
94
                    updateMap["subOrders.$.detailedStatus"] = orderTrackingDet
94
                    updateMap["subOrders.$.detailedStatus"] = orderTrackingDet
95
                    tr = orderTracking.findAll("div",{"class":"tap-bullet-area c-tab-trigger"})
95
                    tr = orderTracking.findAll("div",{"class":"tap-bullet-area c-tab-trigger"})
96
                    
96
                    
97
                    cashbackStatus = subOrder.get("cashBackStatus") 
97
                    cashbackStatus = subOrder.get("cashBackStatus") 
98
                    if "approveDetails-complete" in str(tr):
98
                    if "approveDetails-complete" in str(tr):
Line 360... Line 360...
360
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
360
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
361
    #store.flipkartOrderTracking(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
361
    #store.flipkartOrderTracking(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019279584515727&token=7d85d8c24d36b5a1efc8008634390c7e&src=or&pr=1')
362
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019365336126533&token=dbce2bd4dc4023295b436a7d3c7986c9&src=or&pr=1')
362
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://m.flipkart.com/orderresponse?reference_id=OD0019365336126533&token=dbce2bd4dc4023295b436a7d3c7986c9&src=or&pr=1')
363
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://dl.flipkart.com/orderresponse?reference_id=OD1019453634552336&token=e8e04871ad65b532aa53fa82bb34b901&src=or&pr=1')
363
    #store.parseOrderRawHtml(12346, "subtagId", 122324,  "html", 'https://dl.flipkart.com/orderresponse?reference_id=OD1019453634552336&token=e8e04871ad65b532aa53fa82bb34b901&src=or&pr=1')
364
    #hex_md5('spice@2020')
364
    #hex_md5('spice@2020')
365
    store.scrapeAffiliate(date.today() - timedelta(30), date.today())
365
    store.scrapeStoreOrders()
366
 
366
 
367
 
367
 
368
if __name__ == '__main__':
368
if __name__ == '__main__':
369
        main()
369
        main()
370
        
370