import wget
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
with open('list.txt') as my_list:
for url in my_list:
wget.download(url)
import urllib2
with open('list.txt') as my_list:
for line in my_list:
response = urllib2.urlopen(line)
html = response.read()
# now process the page's source
如果您获得SSL:CERTIFICATE\u VERIFY\u失败:
使用操作系统库:
^{pr2}$假设文件每行包含一个URL,则可以执行以下操作:
相关问题 更多 >
编程相关推荐