def read(self, id=None, start=0,max=2**31-1,type=None): 
        if id:
            url = "http://%s.tumblr.com/api/read/json?id=%s" % (self.name,id)
            response = urlopen(url)
            page = response.read()
            m = re.match("^.*?({.*}).*$", page,re.DOTALL | re.MULTILINE | re.UNICODE)
            results = simplejson.loads(m.group(1))
            if len(results['posts']) == 0:
                return None 

            return results['posts'][0]  
        else:	
            return TumblrIterator(self.name,start,max,type)
dataset/ETHPy150Open ialex/opentumblr-qt/opentumblrqt/tumblr.py/Api.read/original