Subversion Repositories SmartDukaan

Rev

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

Rev 14207 Rev 14208
Line 85... Line 85...
85
        instock = 0
85
        instock = 0
86
        req = urllib2.Request(url,headers=headers)
86
        req = urllib2.Request(url,headers=headers)
87
        response = urllib2.urlopen(req)
87
        response = urllib2.urlopen(req)
88
        response.close()
88
        response.close()
89
        json_input = response.read()
89
        json_input = response.read()
-
 
90
        print "response"
-
 
91
        print json_input
90
        priceInfo = json.loads(json_input)
92
        priceInfo = json.loads(json_input)
91
        print priceInfo
93
        print priceInfo
92
        lowestPrice = priceInfo['response']['sellingPrice']
94
        lowestPrice = priceInfo['response']['sellingPrice']
93
        print "*****"
95
        print "*****"
94
        print lowestPrice
96
        print lowestPrice