We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517e60c commit 15acfc7Copy full SHA for 15acfc7
scrap_file.py
@@ -0,0 +1,22 @@
1
+#Author : RIZWAN AHMAD
2
+
3
4
5
+#pip3 install requests
6
7
+import requests
8
9
10
11
+#Function for download file parameter taking as url
12
13
+def download(url):
14
+ f = open('file_name.jpg','wb') # opening file in write binary('wb') mode with file_name.ext ext=extension
15
+ f.write(requests.get(url).content) # Writing File Content in file_name.jpg
16
+ f.close()
17
+ print("Succesfully Downloaded")
18
19
+url='https://avatars0.githubusercontent.com/u/29729380?s=400&v=4' #URL from which we want to download
20
21
+download(url)
22
0 commit comments