Hello,
I've got a potential issue with the Get method. It seems it's returning HTTP 403, whereas Get_Table seems to work and return data.
Code example - doesn't work:
import pandas as pd
import nasdaqdatalink
df = nasdaqdatalink.get('ZACKS/FC')
print(df)
Result:
Python313\site-packages\nasdaqdatalink\connection.py", line 92, in parse
raise DataLinkError(http_status=response.status_code, http_body=response.text)
nasdaqdatalink.errors.data_link_error.DataLinkError: (Status 403) Something went wrong. Please try again. If you continue to have problems, please contact us at connect@data.nasdaq.com.
Code example - works:
import pandas as pd
import nasdaqdatalink
df = nasdaqdatalink.get_table('ZACKS/FC')
print(df)
Result:
m_ticker ticker ... eps_basic_net eps_diluted_net
None ...
0 SPM TRV ... 9.37 9.28
1 SPM TRV ... 2.45 2.42
2 SPM TRV ... 1.93 1.92
3 SPM TRV ... 2.65 2.62
4 SPM TRV ... 2.34 2.32
... ... ... ... ... ...
140 PG PG ... 3.75 3.67
141 PG PG ... 0.97 0.95
142 PG PG ... 0.73 0.73
143 PG PG ... 1.26 1.22
144 PG PG ... 1.25 1.22
[145 rows x 249 columns]
[Finished in 9.5s]
Environement: Sublime Text
Hello,
I've got a potential issue with the Get method. It seems it's returning HTTP 403, whereas Get_Table seems to work and return data.
Code example - doesn't work:
Result:
Code example - works:
Result:
Environement: Sublime Text