From 285806b0d89d73b8dca5e36b26ddf06ff56cca58 Mon Sep 17 00:00:00 2001 From: Daniel Zeitoun Date: Tue, 30 Jan 2024 13:50:32 +0100 Subject: [PATCH 1/5] filling hashtags/locations in extract_story_v1 --- instagrapi/extractors.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/instagrapi/extractors.py b/instagrapi/extractors.py index 611d6a32..ab2b5cf8 100644 --- a/instagrapi/extractors.py +++ b/instagrapi/extractors.py @@ -26,6 +26,8 @@ StoryLink, StoryMedia, StoryMention, + StoryLocation, + StoryHashtag, Track, User, UserShort, @@ -393,8 +395,12 @@ def extract_story_v1(data): story["mentions"] = [ StoryMention(**mention) for mention in story.get("reel_mentions", []) ] - story["locations"] = [] - story["hashtags"] = [] + story["locations"] = [ + StoryLocation(**location) for location in story.get("story_locations", []) + ] + story["hashtags"] = [ + StoryHashtag(**hashtag) for hashtag in story.get("story_hashtags", []) + ] story["stickers"] = data.get("story_link_stickers") or [] feed_medias = [] story_feed_medias = data.get("story_feed_media") or [] From d7aaba6212756e4699b5d4c8c57f5bf9f1c78786 Mon Sep 17 00:00:00 2001 From: Daniel Zeitoun Date: Tue, 30 Jan 2024 14:13:18 +0100 Subject: [PATCH 2/5] increase version number --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3dfb1e08..b46c4efb 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ setup( name="instagrapi", - version="2.0.3", + version="2.0.4", author="Mark Subzeroid", author_email="143403577+subzeroid@users.noreply.github.com", license="MIT", From d3d9a8fd2ef488345ff4a7fded6e51f562daf479 Mon Sep 17 00:00:00 2001 From: Daniel Zeitoun Date: Wed, 31 Jan 2024 14:02:26 +0100 Subject: [PATCH 3/5] adding rotation field to StoryLocation --- instagrapi/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instagrapi/types.py b/instagrapi/types.py index 06fe8f0a..c6839e22 100644 --- a/instagrapi/types.py +++ b/instagrapi/types.py @@ -249,6 +249,7 @@ class StoryLocation(TypesBaseModel): y: Optional[float] = None width: Optional[float] = None height: Optional[float] = None + rotation: Optional[float] = None class StoryStickerLink(TypesBaseModel): From 0300b2da07e9d4236785fc6b8badf1203314a910 Mon Sep 17 00:00:00 2001 From: Daniel Zeitoun Date: Wed, 31 Jan 2024 14:14:09 +0100 Subject: [PATCH 4/5] adding rotation field to StoryHashtag --- instagrapi/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagrapi/types.py b/instagrapi/types.py index c6839e22..667aa0f3 100644 --- a/instagrapi/types.py +++ b/instagrapi/types.py @@ -241,7 +241,7 @@ class StoryHashtag(TypesBaseModel): y: Optional[float] = None width: Optional[float] = None height: Optional[float] = None - + rotation: Optional[float] = None class StoryLocation(TypesBaseModel): location: Location From cbc437880c1657978cdf6fd45d4088f9fee568dd Mon Sep 17 00:00:00 2001 From: Daniel Zeitoun Date: Wed, 31 Jan 2024 14:14:38 +0100 Subject: [PATCH 5/5] adding rotation field to StoryMention --- instagrapi/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instagrapi/types.py b/instagrapi/types.py index 667aa0f3..123eb9a7 100644 --- a/instagrapi/types.py +++ b/instagrapi/types.py @@ -213,6 +213,7 @@ class StoryMention(TypesBaseModel): y: Optional[float] = None width: Optional[float] = None height: Optional[float] = None + rotation: Optional[float] = None class StoryMedia(TypesBaseModel):