commit 2ff1a888d71e3156473b76d2d2958434d1a1b1c3
parent 87c693b055856f4f8087927d1776f7557d080b42
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Thu, 13 Oct 2016 17:18:10 +0200
Update download-image-by-link.py
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/download-image-by-link.py b/scripts/download-image-by-link.py
@@ -22,7 +22,7 @@ def store_raw_images():
try:
i
try:
- urllib2.urlretrieve(i, "neg/"+str(pic_num)+".jpg")
+ urllib2.request.urlretrieve(i, "neg/"+str(pic_num)+".jpg")
except (HTTPError, URLError) as error:
fail_url = 0
except timeout:
@@ -55,7 +55,7 @@ def store_raw_images2():
try:
i
try:
- urllib2.urlretrieve(i, "neg/"+str(pic_num)+".jpg")
+ urllib2.request.urlretrieve(i, "neg/"+str(pic_num)+".jpg")
except (HTTPError, URLError) as error:
fail_url = 0
except timeout:
@@ -88,7 +88,7 @@ def store_raw_pos_images():
try:
i
try:
- urllib2.urlretrieve(i, "pos/"+str(pic_num)+".jpg")
+ urllib2.request.urlretrieve(i, "pos/"+str(pic_num)+".jpg")
except (HTTPError, URLError) as error:
fail_url = 0
except timeout: