質問編集履歴
1
エラー
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,117 @@
|
|
83
83
|
time.sleep(5)
|
84
84
|
|
85
85
|
```
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
```error
|
90
|
+
|
91
|
+
Traceback (most recent call last):
|
92
|
+
|
93
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 1319, in do_open
|
94
|
+
|
95
|
+
encode_chunked=req.has_header('Transfer-encoding'))
|
96
|
+
|
97
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 1252, in request
|
98
|
+
|
99
|
+
self._send_request(method, url, body, headers, encode_chunked)
|
100
|
+
|
101
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 1298, in _send_request
|
102
|
+
|
103
|
+
self.endheaders(body, encode_chunked=encode_chunked)
|
104
|
+
|
105
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 1247, in endheaders
|
106
|
+
|
107
|
+
self._send_output(message_body, encode_chunked=encode_chunked)
|
108
|
+
|
109
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 1026, in _send_output
|
110
|
+
|
111
|
+
self.send(msg)
|
112
|
+
|
113
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 966, in send
|
114
|
+
|
115
|
+
self.connect()
|
116
|
+
|
117
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 1414, in connect
|
118
|
+
|
119
|
+
super().connect()
|
120
|
+
|
121
|
+
File "C:\Users\detec\Anaconda3\lib\http\client.py", line 938, in connect
|
122
|
+
|
123
|
+
(self.host,self.port), self.timeout, self.source_address)
|
124
|
+
|
125
|
+
File "C:\Users\detec\Anaconda3\lib\socket.py", line 728, in create_connection
|
126
|
+
|
127
|
+
raise err
|
128
|
+
|
129
|
+
File "C:\Users\detec\Anaconda3\lib\socket.py", line 716, in create_connection
|
130
|
+
|
131
|
+
sock.connect(sa)
|
132
|
+
|
133
|
+
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
During handling of the above exception, another exception occurred:
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
Traceback (most recent call last):
|
142
|
+
|
143
|
+
File "corona.py", line 6, in <module>
|
144
|
+
|
145
|
+
"https://web.pref.hyogo.lg.jp/kk03/corona_hasseijyokyo.html", header=0
|
146
|
+
|
147
|
+
File "C:\Users\detec\Anaconda3\lib\site-packages\pandas\io\html.py", line 1100, in read_html
|
148
|
+
|
149
|
+
displayed_only=displayed_only,
|
150
|
+
|
151
|
+
File "C:\Users\detec\Anaconda3\lib\site-packages\pandas\io\html.py", line 895, in _parse
|
152
|
+
|
153
|
+
tables = p.parse_tables()
|
154
|
+
|
155
|
+
File "C:\Users\detec\Anaconda3\lib\site-packages\pandas\io\html.py", line 213, in parse_tables
|
156
|
+
|
157
|
+
tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
|
158
|
+
|
159
|
+
File "C:\Users\detec\Anaconda3\lib\site-packages\pandas\io\html.py", line 733, in _build_doc
|
160
|
+
|
161
|
+
raise e
|
162
|
+
|
163
|
+
File "C:\Users\detec\Anaconda3\lib\site-packages\pandas\io\html.py", line 714, in _build_doc
|
164
|
+
|
165
|
+
with urlopen(self.io) as f:
|
166
|
+
|
167
|
+
File "C:\Users\detec\Anaconda3\lib\site-packages\pandas\io\common.py", line 141, in urlopen
|
168
|
+
|
169
|
+
return urllib.request.urlopen(*args, **kwargs)
|
170
|
+
|
171
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 222, in urlopen
|
172
|
+
|
173
|
+
return opener.open(url, data, timeout)
|
174
|
+
|
175
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 525, in open
|
176
|
+
|
177
|
+
response = self._open(req, data)
|
178
|
+
|
179
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 543, in _open
|
180
|
+
|
181
|
+
'_open', req)
|
182
|
+
|
183
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 503, in _call_chain
|
184
|
+
|
185
|
+
result = func(*args)
|
186
|
+
|
187
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 1362, in https_open
|
188
|
+
|
189
|
+
context=self._context, check_hostname=self._check_hostname)
|
190
|
+
|
191
|
+
File "C:\Users\detec\Anaconda3\lib\urllib\request.py", line 1321, in do_open
|
192
|
+
|
193
|
+
raise URLError(err)
|
194
|
+
|
195
|
+
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
```
|