Esempio n. 1
0
    def __init__(self, post, base_url):
        self.ID = post['id']

        # we can extract generally useful information from 'text' keys
        labels = list(util.extract_all_keys(post, 'text'))
        self.info = {'labels': labels}

        self.url = base_url + post['title']['commandLink']
Esempio n. 2
0
 def __init__(self, post, base_url):
     self.ID = post['id']
     labels = list(util.extract_all_keys(post, 'text'))
     self.info = {'labels': labels}
     self.url = base_url + post['title']['commandLink']