使用python下载一些链接的软件包
import re
import requests
import os
import wget
get = raw_input("please input your link::")
path = raw_input("input your package stor path::")
r = requests.get(get)
data = r.text
link_list =re.findall(r"http.+?(?<=x86_64.rpm)" ,data )
for url in link_list:
print (url)
os.chdir('/home/package')
wget.download(url)
print("download is done,package number is ",len(link_list))