Subversion Repositories SmartDukaan

Rev

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

Rev 16874 Rev 16875
Line 76... Line 76...
76
            except:
76
            except:
77
                #Write all cases here for Order Not created Known
77
                #Write all cases here for Order Not created Known
78
                try:
78
                try:
79
                    if not soup.body:
79
                    if not soup.body:
80
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
80
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
81
                    if 'Securely redirecting you' in soup.h3.text.strip():
81
                    elif 'Securely redirecting you' in soup.h3.text.strip():
82
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
82
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
83
                    else:
83
                    else:
84
                        raise
84
                        raise
85
                except:
85
                except:
86
                    try:
86
                    try:
Line 644... Line 644...
644
#                     ('Accept', 'text/html,application/xhtml+xml,application/json,application/xml;q=0.9,*/*;q=0.8'),
644
#                     ('Accept', 'text/html,application/xhtml+xml,application/json,application/xml;q=0.9,*/*;q=0.8'),
645
#                     ('Accept-Encoding', 'gzip,deflate,sdch'),                  
645
#                     ('Accept-Encoding', 'gzip,deflate,sdch'),                  
646
#                     ('Accept-Language', 'en-US,en;q=0.8'),                     
646
#                     ('Accept-Language', 'en-US,en;q=0.8'),                     
647
#                     ('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.3')]
647
#                     ('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.3')]
648
#    store.scrapeStoreOrders()
648
#    store.scrapeStoreOrders()
649
    store.parseOrderRawHtml(5322, "13232", 14, readSSh("/home/amit/Downloads/20531.html"), "https://www.amazon.in/gp/buy/spc/handlers/static-submit-decoupled.html/ref=ox_spc_place_order?ie=UTF8&fromAnywhere=1&hasWorkingJav")
649
    store.parseOrderRawHtml(9274, "13232", 14, readSSh("/home/amit/Downloads/9274.html"), "https://www.amazon.in/gp/buy/spc/handlers/static-submit-decoupled.html/ref=ox_spc_place_order?ie=UTF8&fromAnywhere=1&hasWorkingJav")
650
    #store.trackOrdersForUser(4355, "https://www.amazon.in/gp/css/summary/edit.html?orderID=171-4824011-7090713", readSSh("~/4355"))
650
    #store.trackOrdersForUser(4355, "https://www.amazon.in/gp/css/summary/edit.html?orderID=171-4824011-7090713", readSSh("~/4355"))
651
    #readSSh("/tmp/User211/2015-04-12 10:32:41.905765")
651
    #readSSh("/tmp/User211/2015-04-12 10:32:41.905765")
652
    #store.scrapeAffiliate()
652
    #store.scrapeAffiliate()
653
    #parseDetailNotCreated()
653
    #parseDetailNotCreated()
654
    #parseOrderNotCreated()
654
    #parseOrderNotCreated()