Now it downloads all versions
This commit is contained in:
Regular → Executable
+6
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user