Subversion Repositories SmartDukaan

Rev

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

Rev 17268 Rev 17434
Line 24... Line 24...
24
        url = "http://mobileapi.flipkart.net/2/discover/productInfo/0?pids=%s"%(self.fsn)
24
        url = "http://mobileapi.flipkart.net/2/discover/productInfo/0?pids=%s"%(self.fsn)
25
        try:
25
        try:
26
            
26
            
27
            """quick fix,need to add it conf""" 
27
            """quick fix,need to add it conf""" 
28
            
28
            
29
            response_data = fetchResponseUsingProxy(url, headers, livePricing=True, proxy=True, flipkart=True)                
29
            response_data = fetchResponseUsingProxy(url, headers, livePricing=None, proxy=True, flipkart=False)                
30
            print "Fetched response from flipkart for %s" %(url)
30
            print "Fetched response from flipkart for %s" %(url)
31
            #redirect_url = response.url
31
            #redirect_url = response.url
32
 
32
 
33
        except Exception as e:
33
        except Exception as e:
34
            traceback.print_exc()
34
            traceback.print_exc()
Line 71... Line 71...
71
            
71
            
72
 
72
 
73
def main():
73
def main():
74
    print datetime.datetime.now()
74
    print datetime.datetime.now()
75
    scraper = FlipkartProductPageScraper()
75
    scraper = FlipkartProductPageScraper()
76
    print scraper.read('TABE4U68CHD9AG5V')
76
    print scraper.read('MOBE9QXZK8VMMNDV')
77
    print datetime.datetime.now()
77
    print datetime.datetime.now()
78
 
78
 
79
 
79
 
80
if __name__ == '__main__':
80
if __name__ == '__main__':
81
    main()
81
    main()
82
82