Source Code :
#required module- pip install instaloader
import instaloader
from instaloader import Post
#url of post
url = 'https://www.instagram.com/p/CBSaz_QlCaR/'
#Shorting the post url
shorted_url = url[28:len(url) - 1]
#initalizing instaloader
i = instaloader.Instaloader()
#getting the data of post
post = Post.from_shortcode(i.context, shorted_url)
#downloading the post and folder is download post
i.download_post(post, target='download_post')
0 Comments