+7

How to download image using Python request module?

4/14/2019 3:54:27 AM

Programmer Raja

7 Answers

New Answer

+4

https://code.sololearn.com/cLF2DLBK2a8D/?ref=app Try this in system where you have requests module installed

+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

+3

Check that tutorial from thenewboston: https://youtu.be/GQiLweAoxgQ

+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?).

+2

Oh lol I just found that I have written tey instead of try

+2

YUGABDH PASHTE 😂😂😂

+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()