| Line 188... |
Line 188... |
| 188 |
|
188 |
|
| 189 |
sections = soup.findAll("div", {"class":"ui-app-card-body"})
|
189 |
sections = soup.findAll("div", {"class":"ui-app-card-body"})
|
| 190 |
sections.pop(1)
|
190 |
sections.pop(1)
|
| 191 |
|
191 |
|
| 192 |
merchantOrder = Order(orderId, userId, subTagId, self.store_id, orderSuccessUrl)
|
192 |
merchantOrder = Order(orderId, userId, subTagId, self.store_id, orderSuccessUrl)
|
| - |
|
193 |
merchantOrder.orderTrackingUrl = url
|
| 193 |
for data in sections:
|
194 |
for data in sections:
|
| 194 |
name = data.findAll("span")
|
195 |
name = data.findAll("span")
|
| 195 |
i=0
|
196 |
i=0
|
| 196 |
while i< len(name):
|
197 |
while i< len(name):
|
| 197 |
if "key" in str(name[i]):
|
198 |
if "key" in str(name[i]):
|
| Line 359... |
Line 360... |
| 359 |
#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')
|
| 360 |
#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')
|
| 361 |
#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')
|
| 362 |
#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')
|
| 363 |
#hex_md5('spice@2020')
|
364 |
#hex_md5('spice@2020')
|
| 364 |
store.scrapeStoreOrders()
|
365 |
store.scrapeAffiliate(date.today() - timedelta(30), date.today())
|
| 365 |
|
366 |
|
| 366 |
|
367 |
|
| 367 |
if __name__ == '__main__':
|
368 |
if __name__ == '__main__':
|
| 368 |
main()
|
369 |
main()
|
| 369 |
|
370 |
|
| Line 388... |
Line 389... |
| 388 |
data[classkey] = obj.__class__.__name__
|
389 |
data[classkey] = obj.__class__.__name__
|
| 389 |
return data
|
390 |
return data
|
| 390 |
else:
|
391 |
else:
|
| 391 |
return obj
|
392 |
return obj
|
| 392 |
|
393 |
|
| - |
|
394 |
|
| 393 |
|
395 |
|