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']
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']