github subzeroid/instagrapi 1.16.7
Link Sticker

latest releases: 2.1.2, 2.1.1, 2.0.3...
2 years ago

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', ....

Don't miss a new instagrapi release

NewReleases is sending notifications on new releases.