+ 7

How to download image using Python request module?

14th Apr 2019, 3:54 AM
Programmer Raja
Programmer Raja - avatar
7 ответов
+ 4
https://code.sololearn.com/cLF2DLBK2a8D/?ref=app Try this in system where you have requests module installed
14th Apr 2019, 4:22 AM
Yugabdh
Yugabdh - avatar
+ 6
Well bro you can't do it from sololearn but u can do it from the PC the code is same like YUGABDH PASHTE had given u
15th Apr 2019, 1:16 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 3
Check that tutorial from thenewboston: https://youtu.be/GQiLweAoxgQ
15th Apr 2019, 11:40 AM
khalil Saghiri
khalil Saghiri - avatar
+ 2
You can refer to a video that corey made about the requests module. You can find it on youtube, his channel name is corey schafer(something like that?).
14th Apr 2019, 9:21 AM
Programmer
Programmer - avatar
+ 2
Oh lol I just found that I have written tey instead of try
15th Apr 2019, 3:25 PM
Yugabdh
Yugabdh - avatar
+ 2
YUGABDH PASHTE 😂😂😂
15th Apr 2019, 4:12 PM
Programmer Raja
Programmer Raja - avatar
+ 2
#modules From sys import * İmport requests #varaibles target = requests.get(argv[1]) command = argv[2] #command controls if command == "source": print (target.text) elif command == "file": name = input("file name:") file = open(name, "w") file.write(target.text) file.close() else: exit()
19th May 2019, 2:37 PM
Giant Programmer
Giant Programmer - avatar