From a761547424c098689a27b48addd30d2a53dfecc9 Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Wed, 26 Oct 2016 14:16:39 -0300 Subject: [PATCH] removed comments --- links/image-crawler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/links/image-crawler.py b/links/image-crawler.py index cc5af50..4ed9024 100644 --- a/links/image-crawler.py +++ b/links/image-crawler.py @@ -1,4 +1,3 @@ -''' from bs4 import BeautifulSoup from urllib.request import urlopen import urllib.request @@ -40,7 +39,7 @@ def get_images(url): each = each[0:pos+4] if not booleano: continue - + if each[0] + each[1] == '//' or each[0] == '/': each = 'http:'+each if each[0:4] != 'http' and each[0:5] != 'https': @@ -52,5 +51,3 @@ def get_images(url): urllib.request.urlretrieve(each,"%s"%(caminho)+str(contador)+filename) except Exception: continue - -''' -- libgit2 0.21.2