step 1: install $ Pip install Instaloader
step 2: follow code
code:-
import instaloader
mod=instaloader.Instaloader()
user=input("Enter instagram username:")
mod.download_profile(user,profile_pic_only=True)
output:-
Enter instagram username:vikram_somai
Stored ID 49463895806 for profile vikram_somai.
vikram_somai\2018-11-21_19-35-46_UTC_profile_pic.jpg
Post a Comment
If you have any doubts, Please let me know
Thanks!