Skip to content

Commit 94ac2a7

Browse files
authored
Update main.py
urllib has no attribute request
1 parent ef9e731 commit 94ac2a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monkey/0013/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def spider(url):
2626

2727
# 下载图片
2828
def download_Image(url, save_path):
29-
urllib.request.urlretrieve(url, save_path)
29+
urllib.urlretrieve(url, save_path)
3030

3131

3232
if __name__ == '__main__':
3333
url = "http://tieba.baidu.com/p/2166231880"
34-
spider(url)
34+
spider(url)

0 commit comments

Comments
 (0)