質問編集履歴
1
個人情報の削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,36 +10,35 @@
|
|
10
10
|
しかしながら
|
11
11
|
``
|
12
12
|
Traceback (most recent call last):
|
13
|
-
File "C:\Users\
|
13
|
+
File "C:\Users\user\Desktop\html.py", line 42, in <module>
|
14
14
|
commentsendcheck=urllib.request.urlopen(commenturl,data,headers)
|
15
|
-
File "C:\Users\
|
15
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 162, in urlopen
|
16
16
|
return opener.open(url, data, timeout)
|
17
|
-
File "C:\Users\
|
17
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 465, in open
|
18
18
|
response = self._open(req, data)
|
19
|
-
File "C:\Users\
|
19
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 483, in _open
|
20
20
|
'_open', req)
|
21
|
-
File "C:\Users\
|
21
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 443, in _call_chain
|
22
22
|
result = func(*args)
|
23
|
-
File "C:\Users\
|
23
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 1268, in http_open
|
24
24
|
return self.do_open(http.client.HTTPConnection, req)
|
25
|
-
File "C:\Users\
|
25
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 1240, in do_open
|
26
26
|
h.request(req.get_method(), req.selector, req.data, headers)
|
27
|
-
File "C:\Users\
|
27
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 1083, in request
|
28
28
|
self._send_request(method, url, body, headers)
|
29
|
-
File "C:\Users\
|
29
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 1128, in _send_request
|
30
30
|
self.endheaders(body)
|
31
|
-
File "C:\Users\
|
31
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 1079, in endheaders
|
32
32
|
self._send_output(message_body)
|
33
|
-
File "C:\Users\
|
33
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 911, in _send_output
|
34
34
|
self.send(msg)
|
35
|
-
File "C:\Users\
|
35
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 854, in send
|
36
36
|
self.connect()
|
37
|
-
File "C:\Users\
|
37
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\http\client.py", line 826, in connect
|
38
38
|
(self.host,self.port), self.timeout, self.source_address)
|
39
|
-
File "C:\Users\
|
39
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\socket.py", line 699, in create_connection
|
40
40
|
sock.settimeout(timeout)
|
41
|
-
TypeError: an integer is required (got type dict)
|
41
|
+
TypeError: an integer is required (got type dict)``
|
42
|
-
``
|
43
42
|
といった形でエラーが出力されます。
|
44
43
|
これは私の構文が間違っているためなのでしょうか?ご指示をお願いしたいです。
|
45
44
|
また、もう一つお伺いしたいこととして
|