155 for result
in json[
"comments"]:
156 user = result[
'creator'].get(
'display_name', result[
'creator'][
'name'])
158 content = result[
'comment'].get(
'content',
'').strip()
160 content = markdown_to_text(content)
163 f
"▲ {result['counts']['upvotes']} ▼ {result['counts']['downvotes']}"
164 f
" | {gettext('user')}: {user}"
165 f
" | {gettext('community')}: {result['community']['title']}"
170 'url': result[
'comment'][
'ap_id'],
171 'title': result[
'post'][
'name'],
172 'content': markdown_to_text(result[
'comment'][
'content']),
173 'publishedDate': datetime.strptime(result[
'comment'][
'published'][:19],
'%Y-%m-%dT%H:%M:%S'),
174 'metadata': metadata,