我正在使用python beautifulsoup和urllib.请求从以下网站收集天气数据-
http://www.wunderground.com/history/airport/CYTZ/
以下是获取网页的代码
^{pr2}$我意外地保留了一些数据,但我需要的结果是-
URLError: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>
每次运行程序时,结果的数量都会有所不同。有没有一种特殊的方法可以阻止这种情况的发生并在一次运行中提取所有结果?谢谢
目前没有回答
相关问题 更多 >
编程相关推荐