Now it downloads all versions

master
yorch 11 years ago
parent 1df6316ec7
commit 031d423420

@ -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)

Loading…
Cancel
Save