diff --git a/instaloader/structures.py b/instaloader/structures.py index 045d636..1a64584 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -128,6 +128,14 @@ class Post: """The mediaid is a decimal representation of the media shortcode.""" return int(self._node['id']) + @property + def title(self) -> Optional[str]: + """Title of post""" + try: + return self._field('title') + except KeyError: + return None + def __repr__(self): return ''.format(self.shortcode)