diff --git a/instaloader/structures.py b/instaloader/structures.py index 8462a21..0af9c80 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -1182,7 +1182,11 @@ class Hashtag: self._has_full_metadata = True def _asdict(self): - return self._node + json_node = self._node.copy() + # remove posts + json_node.pop("edge_hashtag_to_top_posts", None) + json_node.pop("edge_hashtag_to_media", None) + return json_node def __repr__(self): return "".format(self.name)