🔥 The fastest and powerful Python library for Instagram Private API 2024
Story
BioLink
type for User
for_story
for photo_rupload
StoryLocation
, StoryMedia
, Media
docs/exceptions.md
Many bugs fixed
Photo:
>>> from instagrapi import Client
>>> from instagrapi.types import StoryLink
>>> cl = Client(proxy='http://123.123.123.123:40007')
>>> cl.load_settings('/tmp/dump.json')
>>> cl.photo_upload_to_story("/tmp/tmpg133wsw2.mp4.jpg", "", links=[StoryLink(webUri="http://adw0rd.com")])
Video:
>>> from instagrapi import Client
>>> from instagrapi.types import StoryLink
>>> from instagrapi.story import StoryBuilder
>>> cl = Client(proxy='http://123.123.123.123:40007')
>>> cl.load_settings('/tmp/dump.json')
>>> link = StoryLink(webUri="http://adw0rd.com")
>>> buildout = StoryBuilder("/tmp/tmptsktx_j6.mp4", "Test").video(5, link=link.webUri)
Moviepy - Building video /tmp/tmpxf3x57e8.mp4.
Moviepy - Writing video /tmp/tmpxf3x57e8.mp4
Moviepy - Done !
Moviepy - video ready /tmp/tmpxf3x57e8.mp4
>>> cl.video_upload_to_story(buildout.path, "", stickers=buildout.stickers)
Analizing video file "/tmp/tmpxf3x57e8.mp4"
Generating thumbnail "/tmp/tmpxf3x57e8.mp4.jpg"...
Story(pk='2737326000305270904', id='2737326000305270904_29817608135', code='CX8736KovB4', ....
Added link to a post in story https://github.com/adw0rd/instagrapi/issues/412
Added HighlightMixin (highlight_info, highlight_pk_from_url, extract_highlight_v1), ClientHighlightTestCase and docs
Added TOTP, TOTPMixin and TOTPTestCase https://adw0rd.github.io/instagrapi/usage-guide/totp.html
Support login_by_sessionid and Authorization header
Switched to a new authorization mechanism (from cookies to Authorization header)