| Line 284... |
Line 284... |
| 284 |
status = MStore.ORDER_PLACED
|
284 |
status = MStore.ORDER_PLACED
|
| 285 |
else:
|
285 |
else:
|
| 286 |
status = MStore.ORDER_PLACED
|
286 |
status = MStore.ORDER_PLACED
|
| 287 |
elif str(tr) in ["approveDetails-ongoing"]:
|
287 |
elif str(tr) in ["approveDetails-ongoing"]:
|
| 288 |
status=MStore.ORDER_PLACED
|
288 |
status=MStore.ORDER_PLACED
|
| 289 |
if "dead" in str(tr):
|
289 |
if "dead" in str(tr) or "shippingDetails-returnOngoing" in str(tr):
|
| 290 |
status = MStore.ORDER_CANCELLED
|
290 |
status = MStore.ORDER_CANCELLED
|
| 291 |
print "Sub Order Status " + str(status)
|
291 |
print "Sub Order Status " + str(status)
|
| 292 |
|
292 |
|
| 293 |
trackingDetailsActive = orderTrackingDet.find("div",{"class":"c-tabs-content m-top active"})
|
293 |
trackingDetailsActive = orderTrackingDet.find("div",{"class":"c-tabs-content m-top active"})
|
| 294 |
print "Sub order tracking description " + trackingDetailsActive.text
|
294 |
print "Sub order tracking description " + trackingDetailsActive.text
|
| Line 359... |
Line 359... |
| 359 |
|
359 |
|
| 360 |
def main():
|
360 |
def main():
|
| 361 |
|
361 |
|
| 362 |
store = getStore(2)
|
362 |
store = getStore(2)
|
| 363 |
#store.scrapeAffiliate()
|
363 |
#store.scrapeAffiliate()
|
| 364 |
#store.parseOrderRawHtml(12346, "SHA21423034609", 122324, "html", 'https://www.flipkart.com/orderresponse?reference_id=OD0019889963104132&token=198b370dfc5a25c017b5982c369ee960&src=or&pr=1')
|
364 |
store.parseOrderRawHtml(123469, "SHA21423034609", 122324, "html", 'https://m.flipkart.com/order_details?reference_id=OD3022229107123666&token=13ace95c4dc4e6bc372529a330e6b656&src=or&pr=1')
|
| 365 |
#store.parseOrderRawHtml(12346, "subtagId", 122324, "html", 'https://m.flipkart.com/orderresponse?reference_id=OD3016502908102575&token=0db4c692bacbfbfc158b52358ac9e91e&src=or&pr=1')
|
365 |
#store.parseOrderRawHtml(12346, "subtagId", 122324, "html", 'https://m.flipkart.com/orderresponse?reference_id=OD3016502908102575&token=0db4c692bacbfbfc158b52358ac9e91e&src=or&pr=1')
|
| 366 |
#store.parseOrderRawHtml(12346, "subtagId", 122324, "html", 'https://m.flipkart.com/orderresponse?reference_id=OD3018701137253850&token=f7402ddcf2b63b37cc6bc528cc115d2f&src=or&pr=1')
|
366 |
#store.parseOrderRawHtml(12346, "subtagId", 122324, "html", 'https://m.flipkart.com/orderresponse?reference_id=OD3018701137253850&token=f7402ddcf2b63b37cc6bc528cc115d2f&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')
|
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', 5999)
|
372 |
#store.getCashbackAmount('MOBDVHC6XKKPZ3GZ', 5999)
|
| 373 |
|
373 |
|
| 374 |
|
374 |
|
| 375 |
if __name__ == '__main__':
|
375 |
if __name__ == '__main__':
|
| 376 |
main()
|
376 |
main()
|
| 377 |
|
377 |
|