Subscribe Us

Header Ads

How To Download Instagram Post using Python : Python projects

Hey Guys in this Post i am gonna tell you how you can download instagram post using python ..






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')

Post a Comment

0 Comments