Hi, can you explain why I would get this error (urllib.error.HTTPError: HTTP Error 403: Forbidden) on a code that has been working for 2 to 3 months everyday?
I am a paying customer and I have been running this code everyday without a problem for 3 months. But now I get this error. What's the issue here?
The code is very simple, just the below 2 lines:
import pandas as pd apple_stock = pd.read_html('http://www.nasdaq.com/symbol/aapl/historical')
And below is the error message:
import pandas as pd
apple_stock = pd.read_html('http://www.nasdaq.com/symbol/aapl/historical') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.5/dist-packages/pandas/io/html.py", line 874, in read_html parse_dates, tupleize_cols, thousands, attrs, encoding) File "/usr/local/lib/python3.5/dist-packages/pandas/io/html.py", line 736, in _parse raise_with_traceback(retained) File "/usr/local/lib/python3.5/dist-packages/pandas/compat/init.py", line 333, in raise_with_traceback raise exc.with_traceback(traceback) urllib.error.HTTPError: HTTP Error 403: Forbidden