Omit media when saving Hashtag JSON
This commit is contained in:
parent
c9e4f68597
commit
b98e9941ae
@ -1182,7 +1182,11 @@ class Hashtag:
|
|||||||
self._has_full_metadata = True
|
self._has_full_metadata = True
|
||||||
|
|
||||||
def _asdict(self):
|
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):
|
def __repr__(self):
|
||||||
return "<Hashtag #{}>".format(self.name)
|
return "<Hashtag #{}>".format(self.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user