We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6890da commit 5a0f360Copy full SHA for 5a0f360
mt_scrapper.py
@@ -8,13 +8,10 @@
8
DOWNLOAD_DIR = 'Downloads'
9
10
def downloadFile(url, directory):
11
- print "Voy a descargar la url %s" % url
12
-
13
fileName = url[url.rfind('/')+1:len(url)]
14
# To avoid errors due special characters in the filename,
15
# we use urllib2 to quote it
16
url = url[0:url.rfind('/')+1] + urllib2.quote(fileName)
17
- print "La URL tras el quote es %s" % url
18
fileName = directory + '/' + fileName
19
20
file = urllib2.urlopen(url)
0 commit comments