|  |  | @ -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): |  |  |  | def get_links(**options): | 
			
		
	
		
		
			
				
					
					|  |  |  |     url="http://builder.blender.org/download" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     ptn='(?<=href\=\")[^\"]*' |  |  |  |     ptn='(?<=href\=\")[^\"]*' | 
			
		
	
		
		
			
				
					
					|  |  |  |     source=urllib.request.urlopen(url).read().decode("utf-8") |  |  |  |     source=urllib.request.urlopen(url).read().decode("utf-8") | 
			
		
	
		
		
			
				
					
					|  |  |  |     links=(re.findall(ptn,source)) |  |  |  |     links=(re.findall(ptn,source)) | 
			
		
	
	
		
		
			
				
					|  |  | @ -17,4 +18,6 @@ def get_links(**options): | 
			
		
	
		
		
			
				
					
					|  |  |  | links = get_links() |  |  |  | links = get_links() | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | for l in 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) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |