Download Instagram Profile picture using python | Download Instagram Display picture(DP) using python| python for beginner
Hello reader's ,
In this blog we are going to see that "How to download Instagram profile picture OR display picture (DP) . To perform this activity you must have install python on laptop or desktop and you should also have some basic knowledge of python programming language.
To download Instagram DP, you need to install a module named "instaloader" .
To install this module in your laptop or desktop, Open command prompt (CMD) and type
"pip install instaloader " . After the successful execution of this command instaloader module will be installed .
pip install instaloader in cmd |
Now after the installation of module, open your IDE whatever IDE you are using , i am using VS Code , if dont know how to install VS Code or any other IDE which support Python then you can refer my blog to know that how to install other IDE's .
Now open your IDE and import the module that is instaloader , type "import instaloader" , this one line of code is going to import the module which you have installed using pip.
now type "root = instaloader.Instaloader() " , This line of code is going to initialize the instaloader, here i have used root but you can also use other like - new , test , Etc.
now type "acc = input('Enter the Account Username: ')" , This line of code is going to ask the user to enter the username of that account of which DP user want's to download(This line is going to take input from user).
now type the last line of code that is "root.download_profile(acc, profile_pic_only = True) " , This line of code is going to fetch the data of that user who's name is entered by user and if that user exist then only it is going to download the DP of that user other wise it will show you error or nothing else.
Code :-
from logging import root
import instaloader
root = instaloader.Instaloader()
acc = input('Enter the Account Username: ')
root.download_profile(acc, profile_pic_only = True)
__________Don't forget to write your valuable feedback in comment section._____________
Comments
Post a Comment
Thank you for sharing this.
You’re helping us become better. Want to stay in the loop? Subscribe to our YouTube channel.