Subversion Repositories SmartDukaan

Rev

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

Rev 17234 Rev 17237
Line 606... Line 606...
606
                        updateMap['subOrders.$.deliveredOn'] = arr[1].strip()
606
                        updateMap['subOrders.$.deliveredOn'] = arr[1].strip()
607
                    elif "Exp. Delivery by" in arr[0]:
607
                    elif "Exp. Delivery by" in arr[0]:
608
                        updateMap['subOrders.$.estimatedDeliveryDate'] = arr[1].strip()
608
                        updateMap['subOrders.$.estimatedDeliveryDate'] = arr[1].strip()
609
                    elif "Est. delivery between" in arr[0]:
609
                    elif "Est. delivery between" in arr[0]:
610
                        updateMap['subOrders.$.estimatedDeliveryDate'] = delString.split("between")[1].strip()
610
                        updateMap['subOrders.$.estimatedDeliveryDate'] = delString.split("between")[1].strip()
-
 
611
                    elif "Est. shipping between" in arr[0]:
-
 
612
                        updateMap['subOrders.$.estimatedShippingDate'] = delString.split("between")[1].strip()
611
                    else:
613
                    else:
612
                        updateMap['subOrders.$.estimatedShippingDate'] = arr[1].strip()
614
                        updateMap['subOrders.$.estimatedShippingDate'] = arr[1].strip()
613
                courierDet = subOrderElement.find('div', {'class':'courierDetail'})
615
                courierDet = subOrderElement.find('div', {'class':'courierDetail'})
614
                if courierDet is not None:
616
                if courierDet is not None:
615
                    updateMap['subOrders.$.courierName'] = courierDet.span.text.strip()
617
                    updateMap['subOrders.$.courierName'] = courierDet.span.text.strip()
Line 740... Line 742...
740
 
742
 
741
 
743
 
742
def main():
744
def main():
743
    #print todict([1,2,"3"])
745
    #print todict([1,2,"3"])
744
    store = getStore(3)
746
    store = getStore(3)
-
 
747
    store.scrapeStoreOrders()
745
    #store.parseOrderRawHtml(332221, "3232311", 2, "32311243", "https://m.snapdeal.com/orderSummary?code=3fbc8a02a1c4d3c4e906f46886de0464&order=5808451506")
748
    #store.parseOrderRawHtml(332221, "3232311", 2, "32311243", "https://m.snapdeal.com/orderSummary?code=3fbc8a02a1c4d3c4e906f46886de0464&order=5808451506")
746
    #store.scrapeStoreOrders()
749
    #store.scrapeStoreOrders()
747
    #store._isSubOrderActive(8, "5970688907")
750
    #store._isSubOrderActive(8, "5970688907")
748
    store.scrapeAffiliate(datetime(2015,4,1))
751
    #store.scrapeAffiliate(datetime(2015,4,1))
749
    #store.scrapeStoreOrders()
752
    #store.scrapeStoreOrders()
750
    #store.parseInfo()
753
    #store.parseInfo()
751
 
754
 
752
 
755
 
753
            
756