skillachie / finsymbols

Obtains stock symbols and relating information for SP500, AMEX, NYSE, and NASDAQ
110 stars 41 forks source link

http.client.RemoteDisconnected: Remote end closed connection without response - python3.5 and python3.7 #28

Open datatalking opened 2 years ago

datatalking commented 2 years ago

I've installed the package with pip but when I try to run any of them I get the error

from finsymbols import symbols

# amex = symbols.get_amex_symbols()

nyse = symbols.get_nyse_symbols()
print(nyse)

sp500 = symbols.get_sp500_symbols()
print(sp500)

It generates this error, how can we debug or update the repo or can I repurpose, reuse, take over the repo if its depreciated by @skillachie?

Traceback (most recent call last):
  File "/Users/username/PycharmProjects/finsymbols/finsymbols/test1.py", line 10, in <module>
    nyse = symbols.get_nyse_symbols()
  File "/Users/username/PycharmProjects/finsymbols/finsymbols/symbols.py", line 43, in get_nyse_symbols
    return _get_exchange_data("NYSE")
  File "/Users/username/PycharmProjects/finsymbols/finsymbols/symbols.py", line 61, in _get_exchange_data
    symbol_data = fetch_file(url)
  File "/Users/username/PycharmProjects/finsymbols/finsymbols/symbol_helper.py", line 73, in fetch_file
    file_data = file_fetcher.open(url).read()
  File "/Users/username/opt/anaconda3/envs/Python37/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)