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

receiving 403: Forbidden error codes when trying to load etf #23

Open
msmith6307 opened this issue Jul 6, 2024 · 2 comments
Open

receiving 403: Forbidden error codes when trying to load etf #23

msmith6307 opened this issue Jul 6, 2024 · 2 comments

Comments

@msmith6307
Copy link

started receiving 403 errors over the last two days when trying to load etf data
was previously working
updated to etfpy 1.0.20 but still seeing the issue.
using - Python 3.11.5

from etfpy import ETF, load_etf, get_available_etfs_list
etfs = get_available_etfs_list()
etfs [works did not copy output here]
spy = ETF("SPY")
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\etf.py", line 19, in init
super().init(ticker)
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\client\etf_client.py", line 55, in init
self._soup = self._make_soup_request()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\client\etf_client.py", line 84, in _make_soup_request
raise Exception(f"response {response.status_code}: {response.reason}")
Exception: response 403: Forbidden
spy.info
Traceback (most recent call last):
File "", line 1, in
NameError: name 'spy' is not defined
vwo = load_etf('VWO')
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\etf.py", line 353, in load_etf
return ETF(etf)
^^^^^^^^
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\etf.py", line 19, in init
super().init(ticker)
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\client\etf_client.py", line 55, in init
self._soup = self._make_soup_request()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\msmit\anaconda3\Lib\site-packages\etfpy\client\etf_client.py", line 84, in _make_soup_request
raise Exception(f"response {response.status_code}: {response.reason}")
Exception: response 403: Forbidden

@tavaskor
Copy link

tavaskor commented Jul 8, 2024

updated to etfpy 1.0.20 but still seeing the issue.

This issue also applies to other programmatic access to etfdb ; e.g., https://github.com/lvxhnat/pyetfdb-scraper

@npreiser
Copy link

same here , worked a about 10 days ago for me, bummer,

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

3 participants