wordpress_site_automation/s5/image_downloader.py
2021-12-23 21:24:31 +05:30

8 lines
156 B
Python

import urllib.request
import os
def image_downloader(url):
name="1.jpg"
urllib.request.urlretrieve(str(url),os.path.join("image/",name))