Skip to content

Commit 21b7b81

Browse files
authored
New file
1 parent 167fc91 commit 21b7b81

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import os
2+
import instaloader
3+
4+
def pic_download(name):
5+
parser=instaloader.Instaloader()
6+
os.chdir(os.path.join(os.path.expanduser('~'),'Downloads'))
7+
8+
if os.path.isdir("Insta Downloads"):
9+
os.chdir("Insta Downloads")
10+
return parser.download_profile(name, profile_pic_only=True)
11+
else:
12+
os.mkdir("Insta Downloads")
13+
os.chdir("Insta Downloads")
14+
return parser.download_profile(name, profile_pic_only=True)
15+
16+
if __name__=="__main__":
17+
user=input("Enter the Username: ")
18+
pic_download(user)
19+

0 commit comments

Comments
 (0)