mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-09 03:42:31 +01:00
Add meth:get_tagged_posts to Profile
This commit is contained in:
parent
0ebb223214
commit
3cde1f7db4
@ -609,6 +609,16 @@ class Profile:
|
|||||||
self._rhx_gis,
|
self._rhx_gis,
|
||||||
self._metadata('edge_saved_media')))
|
self._metadata('edge_saved_media')))
|
||||||
|
|
||||||
|
def get_tagged_posts(self) -> Iterator[Post]:
|
||||||
|
"""Retrieve all posts where a profile is tagged."""
|
||||||
|
self._obtain_metadata()
|
||||||
|
yield from (Post(self._context, node, self) for node in
|
||||||
|
self._context.graphql_node_list("e31a871f7301132ceaab56507a66bbb7",
|
||||||
|
{'id': self.userid},
|
||||||
|
'https://www.instagram.com/{0}/'.format(self.username),
|
||||||
|
lambda d: d['data']['user']['edge_user_to_photos_of_you'],
|
||||||
|
self._rhx_gis))
|
||||||
|
|
||||||
def get_followers(self) -> Iterator['Profile']:
|
def get_followers(self) -> Iterator['Profile']:
|
||||||
"""
|
"""
|
||||||
Retrieve list of followers of given profile.
|
Retrieve list of followers of given profile.
|
||||||
|
Loading…
Reference in New Issue
Block a user