Subversion Repositories SmartDukaan

Rev

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

Rev 14981 Rev 14985
Line 369... Line 369...
369
            return missingOrderUrls + ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled&startIndex=10']
369
            return missingOrderUrls + ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled&startIndex=10']
370
        else: 
370
        else: 
371
            return missingOrderUrls
371
            return missingOrderUrls
372
            
372
            
373
    def trackOrdersForUser(self, userId, url, rawHtml):
373
    def trackOrdersForUser(self, userId, url, rawHtml):
374
        directory = "/tmp/User" + str(userId)
374
        directory = "/AmazonTrack/User" + str(userId)
375
        if not os.path.exists(directory):
375
        if not os.path.exists(directory):
376
            os.makedirs(directory)
376
            os.makedirs(directory)
377
        
377
        
378
        
378
        
379
        try:
379
        try:
Line 548... Line 548...
548
        
548
        
549
 
549
 
550
 
550
 
551
def main():
551
def main():
552
    #readSSh("orderSummary24-04:22:22:15")
552
    #readSSh("orderSummary24-04:22:22:15")
553
    readSSh("/tmp/User157/orderSummary24-04:01:15:36")
553
    readSSh("/tmp/User2/404-2225153-7073122")
554
    
554
    
555
    #store = getStore(1)
555
    #store = getStore(1)
556
    #store.scrapeStoreOrders()
556
    #store.scrapeStoreOrders()
557
#    br = mechanize.Browser()
557
#    br = mechanize.Browser()
558
#    br.addheaders = [('User-agent','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11'),
558
#    br.addheaders = [('User-agent','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11'),