CodeX
Published in

CodeX

Download an Instagram Display Picture within Seconds Using Python

From Pexels

About the package

We know that Python is a cool programming language that has a lot of packages, and here we are going to use one of them: INSTALOADER.

  • Posts of an account
  • Stories
  • IGTV
  • Comments on post
  • Profile information
  • Story highlights

The Process

First of all, we need to download the package, and to do that, open your command prompt in Windows or your respective terminal based on the operating system you use and type in the code

pip install instaloader
import instaloader
dp = instaloader.Instaloader() #I'm using a variable dp
dp.download_profile("sarcastic_us")

Output:

dp.download_profile("sarcastic_us", profile_pic = True)
dp.download_profile("sarcastic_us", profile_pic_only = True)

Conclusion

And with this, we can download Instagram display pictures.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store