You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to find a way to set an URL of a reel and use its sound track in my Uploading reel
from instabot import InstaBot, Client
cl = Client()
cl.login('****', '****')
# Get media PK from URL
mediapk = cl.media_pk_from_url("https://www.instagram.com/reel/****/")
# Get music canonical ID from media info
media_info = cl.media_info(mediapk).clips_metadata['music_canonical_id']
if media_info is not None:
print(media_info)
cl.clip_upload_as_reel_with_music("C:/Users/mreza/OneDrive/Desktop/gz.mp4","test with sound",cl.track_info_by_canonical_id(media_info).uri)
print('it is uploaded')
else:
print("No track information found.")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to find a way to set an URL of a reel and use its sound track in my Uploading reel
Beta Was this translation helpful? Give feedback.
All reactions