| Line 39... |
Line 39... |
| 39 |
'''
|
39 |
'''
|
| 40 |
OrderStatusMap = {
|
40 |
OrderStatusMap = {
|
| 41 |
MStore.ORDER_PLACED : ['in progress', 'pending for verification', 'not available', 'in process', 'processing', 'processed'],
|
41 |
MStore.ORDER_PLACED : ['in progress', 'pending for verification', 'not available', 'in process', 'processing', 'processed'],
|
| 42 |
MStore.ORDER_DELIVERED : ['delivered'],
|
42 |
MStore.ORDER_DELIVERED : ['delivered'],
|
| 43 |
MStore.ORDER_SHIPPED : ['in transit', 'dispatched'],
|
43 |
MStore.ORDER_SHIPPED : ['in transit', 'dispatched'],
|
| 44 |
MStore.ORDER_CANCELLED : ['closed for vendor reallocation', 'cancelled', 'product returned by courier', 'returned', 'n/a']
|
44 |
MStore.ORDER_CANCELLED : ['closed for vendor reallocation', 'cancelled', 'product returned by courier', 'returned', 'n/a', 'courier returned']
|
| 45 |
}
|
45 |
}
|
| 46 |
|
46 |
|
| 47 |
CONF_CB_AMOUNT = MStore.CONF_CB_DISCOUNTED_PRICE
|
47 |
CONF_CB_AMOUNT = MStore.CONF_CB_DISCOUNTED_PRICE
|
| 48 |
def __init__(self,store_id):
|
48 |
def __init__(self,store_id):
|
| 49 |
super(Store, self).__init__(store_id)
|
49 |
super(Store, self).__init__(store_id)
|
| Line 622... |
Line 622... |
| 622 |
return urllib.urlencode(parameters)
|
622 |
return urllib.urlencode(parameters)
|
| 623 |
|
623 |
|
| 624 |
def main():
|
624 |
def main():
|
| 625 |
#print todict([1,2,"3"])
|
625 |
#print todict([1,2,"3"])
|
| 626 |
store = getStore(3)
|
626 |
store = getStore(3)
|
| 627 |
store.parseOrderRawHtml(332221, "3232311", 2, "32311243", "https://m.snapdeal.com/orderSummary?code=1131a4add85aefb40a924d71cbf921bd&order=5822561503")
|
627 |
store.parseOrderRawHtml(3322211, "3232311", 2, "32311243", "https://m.snapdeal.com/orderSummary?code=93eb2427cf20803b878c3575d3c5f920&order=5913187728")
|
| 628 |
#store.scrapeStoreOrders()
|
628 |
#store.scrapeStoreOrders()
|
| 629 |
#store._isSubOrderActive(8, "5970688907")
|
629 |
#store._isSubOrderActive(8, "5970688907")
|
| 630 |
#store.scrapeAffiliate()
|
630 |
#store.scrapeAffiliate()
|
| 631 |
#store.scrapeStoreOrders()
|
631 |
#store.scrapeStoreOrders()
|
| 632 |
|
632 |
|