質問編集履歴
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -39,96 +39,6 @@
|
|
39
39
|
下のエラーが発生してしまいます。
|
40
40
|
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
### 発生している問題・エラーメッセージ
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
```
|
52
|
-
|
53
|
-
Traceback (most recent call last):
|
54
|
-
|
55
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 588, in urlopen
|
56
|
-
|
57
|
-
conn = self._get_conn(timeout=pool_timeout)
|
58
|
-
|
59
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 248, in _get_conn
|
60
|
-
|
61
|
-
return conn or self._new_conn()
|
62
|
-
|
63
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 816, in _new_conn
|
64
|
-
|
65
|
-
raise SSLError("Can't connect to HTTPS URL because the SSL "
|
66
|
-
|
67
|
-
urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
During handling of the above exception, another exception occurred:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
Traceback (most recent call last):
|
76
|
-
|
77
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\requests\adapters.py", line 449, in send
|
78
|
-
|
79
|
-
timeout=timeout
|
80
|
-
|
81
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
|
82
|
-
|
83
|
-
_stacktrace=sys.exc_info()[2])
|
84
|
-
|
85
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 399, in increment
|
86
|
-
|
87
|
-
raise MaxRetryError(_pool, url, error or ResponseError(cause))
|
88
|
-
|
89
|
-
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='news.google.com', port=443): Max retries exceeded with url: /?hl=ja&gl=JP&ceid=JP:ja (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
During handling of the above exception, another exception occurred:
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
Traceback (most recent call last):
|
98
|
-
|
99
|
-
File "C:\Users\ユーザーネーム\Documents\�R�[�f�B���O\Pyhton\test01.py", line 8, in <module>
|
100
|
-
|
101
|
-
r = requests.get(url)
|
102
|
-
|
103
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\requests\api.py", line 75, in get
|
104
|
-
|
105
|
-
return request('get', url, params=params, **kwargs)
|
106
|
-
|
107
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\requests\api.py", line 60, in request
|
108
|
-
|
109
|
-
return session.request(method=method, url=url, **kwargs)
|
110
|
-
|
111
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\requests\sessions.py", line 533, in request
|
112
|
-
|
113
|
-
resp = self.send(prep, **send_kwargs)
|
114
|
-
|
115
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\requests\sessions.py", line 646, in send
|
116
|
-
|
117
|
-
r = adapter.send(request, **kwargs)
|
118
|
-
|
119
|
-
File "C:\Users\ユーザーネーム\Anaconda3\lib\site-packages\requests\adapters.py", line 514, in send
|
120
|
-
|
121
|
-
raise SSLError(e, request=request)
|
122
|
-
|
123
|
-
requests.exceptions.SSLError: HTTPSConnectionPool(host='news.google.com', port=443): Max retries exceeded with url: /?hl=ja&gl=JP&ceid=JP:ja (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
```
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
### 該当のソースコード
|
132
42
|
|
133
43
|
|
134
44
|
|