Skip to content

Commit

Permalink
Added hashtag_medias_reels_v1 and bump 1.17.7
Browse files Browse the repository at this point in the history
  • Loading branch information
adw0rd committed May 5, 2023
1 parent 0a9a05f commit 62c38af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions instagrapi/mixins/hashtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,24 @@ def hashtag_medias_recent(self, name: str, amount: int = 27) -> List[Media]:
medias = self.hashtag_medias_recent_v1(name, amount)
return medias

def hashtag_medias_reels_v1(self, name: str, amount: int = 27) -> List[Media]:
"""
Get reels medias for a hashtag by Private Mobile API
Parameters
----------
name: str
Name of the hashtag
amount: int, optional
Maximum number of media to return, default is 71
Returns
-------
List[Media]
List of objects of Media
"""
return self.hashtag_medias_v1(name, amount, tab_key="clips")

def hashtag_follow(self, hashtag: str, unfollow: bool = False) -> bool:
"""
Follow to hashtag
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

setup(
name="instagrapi",
version="1.17.6",
version="1.17.7",
author="Mikhail Andreev",
author_email="[email protected]",
license="MIT",
Expand Down

0 comments on commit 62c38af

Please sign in to comment.