Some problems when downloading data #566
Unanswered
DicksonWallace
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, when I use the investpy to download data, I found that without a vpn, I cannot connect with the investing.com and there's a 503 error. And when I turn on vpn and adjust it to the global mode (all connections go through the vpn), there's still some error like:
Traceback (most recent call last):
File "", line 1, in
data=foreign_cur.get_currency_cross_historical_data(currency_cross='CNY/USD',from_date='01/01/2010',to_date='16/05/2022')
File "D:\Anaconda\lib\site-packages\investpy\currency_crosses.py", line 671, in get_currency_cross_historical_data
req = requests.post(url, headers=head, data=params)
File "D:\Anaconda\lib\site-packages\requests\api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "D:\Anaconda\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Anaconda\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "D:\Anaconda\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "D:\Anaconda\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "D:\Anaconda\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "D:\Anaconda\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "D:\Anaconda\lib\site-packages\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "D:\Anaconda\lib\site-packages\urllib3\connection.py", line 500, in _connect_tls_proxy
return ssl_wrap_socket(
File "D:\Anaconda\lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "D:\Anaconda\lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "D:\Anaconda\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "D:\Anaconda\lib\ssl.py", line 997, in _create
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname
Beta Was this translation helpful? Give feedback.
All reactions