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

Error in get_expirys. Seems, like barchart changed the way they handle requests #1

Open
andrewmakarskiy opened this issue Oct 15, 2018 · 0 comments

Comments

@andrewmakarskiy
Copy link

Seems, like barchart changed the way they handle requests

Let's start with inputting the tickers.
AAPL
Do you want to save File? [y/n]:  n
Traceback (most recent call last):
  File "BarChartOptions.py", line 268, in <module>
    main()
  File "BarChartOptions.py", line 254, in main
    size = len(scraper.get_expirys())
  File "BarChartOptions.py", line 44, in get_expirys
    resp = urllib.request.urlopen(req)
  File "/Users/tt3/miniconda3/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/tt3/miniconda3/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/Users/tt3/miniconda3/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/tt3/miniconda3/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/Users/tt3/miniconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/Users/tt3/miniconda3/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

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

1 participant