Created
February 17, 2021 07:32
-
-
Save ucalyptus2/fffe239b939f5dbd6a0c2387b5500635 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Main acc: @ucalyptus