Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs #3

Open
8Kuula opened this issue Jul 10, 2020 · 6 comments
Open

Hangs #3

8Kuula opened this issue Jul 10, 2020 · 6 comments

Comments

@8Kuula
Copy link

8Kuula commented Jul 10, 2020

Waited ~2mins, but nothing did happen. So I did ctrl+c out.

Python 3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from nasdaq_stock import nasdaq_stock as ns
>>> d = ns.stock('spyd')
^CTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dingleberry/.local/lib/python3.8/site-packages/nasdaq_stock/nasdaq_stock.py", line 28, in stock
    html_data = requests.get(url)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1332, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 303, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 264, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 313, in recv_into
    return self.connection.recv_into(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1821, in recv_into
    result = _lib.SSL_read(self._ssl, buf, nbytes)
KeyboardInterrupt
>>> 

Connection related, maybe.

@georgejs
Copy link
Owner

georgejs commented Jul 10, 2020 via email

@8Kuula
Copy link
Author

8Kuula commented Jul 11, 2020

Im trying to get stock information from Helsinki market. I was trying with this to do that, so even if it would work, would it do that?

@georgejs
Copy link
Owner

georgejs commented Jul 11, 2020 via email

@8Kuula
Copy link
Author

8Kuula commented Jul 11, 2020

I am not a good coder, and just stubled this. Just wished to get some stock data in conky.
Already tried to make crapy google search site scraping one to get OMXHPI data, but it is a mess. So started to search better option.
But no worries. I think of something or toss whole idea to trash :)

@georgejs
Copy link
Owner

georgejs commented Jul 11, 2020 via email

@georgejs
Copy link
Owner

Updates completed. Nasdaq stocks is back up and running sorry it took so long.
Also, for anyone who cares to see what you can do with this program please see
www.isaedge.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants