Now it downloads all versions

This commit is contained in:
2014-12-09 10:00:35 -08:00
parent 1df6316ec7
commit 031d423420
Regular → Executable
+6 -3
View File
@@ -1,7 +1,8 @@
import urllib.request,re,getopt
import urllib.request,re,getopt,os
url="http://builder.blender.org/download"
def get_links(**options):
url="http://builder.blender.org/download"
ptn='(?<=href\=\")[^\"]*'
source=urllib.request.urlopen(url).read().decode("utf-8")
links=(re.findall(ptn,source))
@@ -17,4 +18,6 @@ def get_links(**options):
links = get_links()
for l in links:
print(l)
print(url+os.sep+l,'/Users/makinegx15/Desktop'+os.sep+l)
urllib.request.urlretrieve(url+os.sep+l,'/Users/makinegx15/Desktop'+os.sep+l)
print('downloaded :'+l)