Skip to content

Instantly share code, notes, and snippets.

@ucalyptus2
Created February 17, 2021 07:32
Show Gist options
  • Save ucalyptus2/fffe239b939f5dbd6a0c2387b5500635 to your computer and use it in GitHub Desktop.
Save ucalyptus2/fffe239b939f5dbd6a0c2387b5500635 to your computer and use it in GitHub Desktop.
# run this below line in terminal without the !
!pip install instagrapi
######
from instagrapi import Client
cl = Client()
PROXY = "139.59.1.14:1080" #@param{type:"string"}
CRITERIA = "socks5" #@param ["https","http","socks5"]
#cl.set_proxy("{CRITERIA}://USERNAME:PASSWORD@{PROXY}") if you need a proxy , use this or else use the below line
cl.login("USERNAME", "PASSWORD")
from pathlib import Path
saveas = 'Yeh Raat Bheegi Bheegi' #@param {type:"string"}
caption_text = "#colorization #colorizationphotos #colorizationdigital #colorizationhistory #artificalintelligence #python #code #developer #artistsofinstagram #instagrammers" #@param {type:"string"}
merged_audio_igtv = "/content/output-audio-igtv.mp4" #sample path
print(cl.get_settings()['last_login'])
print(cl.last_json)
print(cl.last_response)
cl.igtv_upload(Path(merged_audio_igtv), saveas, caption_text)
@ucalyptus2
Copy link
Author

Main acc: @ucalyptus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment