在学习本教程时,我正在学习码头:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5eee1f1d0>: F
我正在运行一个python脚本,该脚本检查服务器上的一个文本文件,然后根据它读取的内容打开一个中继。如果在一段时间后打开中继,脚本将发送一个GET请求来更新服务器上的文本文件,然后关闭中继。程序在一段时间内运行正常。我可以打开和关闭中继,当时间延迟超时时,它会更新服务器。如果我让程序运行,一段时间后什么也不做,我会得到以下错误。File "remote-relay.py", line 41, in <module>File "remote-relay.py
from urllib import urlopenimport re
webpage = urlopen('http://stats.espncricinfo.com/indian-premier-league-2012/engine/records/averages/batting.html?id=6680;type=tournament').read()
soup=BeautifulSoup(webpa