mirror of
https://gh.wpcy.net/https://github.com/snehvora/wordpress_site_automation.git
synced 2026-04-23 22:08:39 +08:00
8 lines
156 B
Python
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))
|
|
|
|
|