質問編集履歴

5

えらーメッセージを貼りました。

2020/07/01 06:12

投稿

kawaxxx
kawaxxx

スコア3

test CHANGED
File without changes
test CHANGED
@@ -37,10 +37,6 @@
37
37
  ### 発生している問題・エラーメッセージ
38
38
 
39
39
 
40
-
41
- ```
42
-
43
- エラーメッセージ
44
40
 
45
41
  ```Traceback (most recent call last):
46
42
 

4

えらーメッセージを貼りました。

2020/07/01 06:12

投稿

kawaxxx
kawaxxx

スコア3

test CHANGED
File without changes
test CHANGED
@@ -42,11 +42,7 @@
42
42
 
43
43
  エラーメッセージ
44
44
 
45
-
46
-
47
- コード
48
-
49
- `````Traceback (most recent call last):
45
+ ```Traceback (most recent call last):
50
46
 
51
47
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open
52
48
 
@@ -136,14 +132,6 @@
136
132
 
137
133
  コード
138
134
 
139
- ````ここに言語を入力
140
-
141
- コード
142
-
143
- ```
144
-
145
- コード
146
-
147
135
  ```
148
136
 
149
137
 

3

エラーメッセージを貼りました。

2020/07/01 06:10

投稿

kawaxxx
kawaxxx

スコア3

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,11 @@
42
42
 
43
43
  エラーメッセージ
44
44
 
45
+
46
+
47
+ コード
48
+
45
- ``````Traceback (most recent call last):
49
+ `````Traceback (most recent call last):
46
50
 
47
51
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open
48
52
 
@@ -128,7 +132,15 @@
128
132
 
129
133
  urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
130
134
 
135
+
136
+
137
+ コード
138
+
131
- >>>
139
+ ````ここに言語を入力
140
+
141
+ コード
142
+
143
+ ```
132
144
 
133
145
  コード
134
146
 

2

エラーメッセージを貼りました。

2020/07/01 06:10

投稿

kawaxxx
kawaxxx

スコア3

test CHANGED
File without changes
test CHANGED
@@ -42,6 +42,96 @@
42
42
 
43
43
  エラーメッセージ
44
44
 
45
+ ``````Traceback (most recent call last):
46
+
47
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open
48
+
49
+ encode_chunked=req.has_header('Transfer-encoding'))
50
+
51
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
52
+
53
+ self._send_request(method, url, body, headers, encode_chunked)
54
+
55
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
56
+
57
+ self.endheaders(body, encode_chunked=encode_chunked)
58
+
59
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
60
+
61
+ self._send_output(message_body, encode_chunked=encode_chunked)
62
+
63
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
64
+
65
+ self.send(msg)
66
+
67
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
68
+
69
+ self.connect()
70
+
71
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1392, in connect
72
+
73
+ server_hostname=server_hostname)
74
+
75
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 412, in wrap_socket
76
+
77
+ session=session
78
+
79
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 853, in _create
80
+
81
+ self.do_handshake()
82
+
83
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1117, in do_handshake
84
+
85
+ self._sslobj.do_handshake()
86
+
87
+ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
88
+
89
+
90
+
91
+ During handling of the above exception, another exception occurred:
92
+
93
+
94
+
95
+ Traceback (most recent call last):
96
+
97
+ File "/Users/kawanamiyuki/book-python-scraping-master/ch1/download-png1.py", line 10, in <module>
98
+
99
+ urllib.request.urlretrieve(url, savename)
100
+
101
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 247, in urlretrieve
102
+
103
+ with contextlib.closing(urlopen(url, data)) as fp:
104
+
105
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
106
+
107
+ return opener.open(url, data, timeout)
108
+
109
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
110
+
111
+ response = self._open(req, data)
112
+
113
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in _open
114
+
115
+ '_open', req)
116
+
117
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
118
+
119
+ result = func(*args)
120
+
121
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1360, in https_open
122
+
123
+ context=self._context, check_hostname=self._check_hostname)
124
+
125
+ File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open
126
+
127
+ raise URLError(err)
128
+
129
+ urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
130
+
131
+ >>>
132
+
133
+ コード
134
+
45
135
  ```
46
136
 
47
137
 

1

codeの中にコードをいれました。できているでしょうか。

2020/07/01 06:08

投稿

kawaxxx
kawaxxx

スコア3

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,4 @@
1
- ### 前提・実現したいこと
2
-
3
-
4
-
5
- ここに質問の内容を詳しく書いてください。
6
-
7
- # ライブラリの取り込み --- (※1)
1
+ ```# ライブラリの取り込み --- (※1)
8
2
 
9
3
  import urllib.request
10
4
 
@@ -25,6 +19,16 @@
25
19
  urllib.request.urlretrieve(url, savename)
26
20
 
27
21
  print("保存しました")
22
+
23
+ コード
24
+
25
+ ```### 前提・実現したいこと
26
+
27
+
28
+
29
+ ここに質問の内容を詳しく書いてください。
30
+
31
+
28
32
 
29
33
 
30
34