Hi,
This simple code works in Django shell (python manage.py shell) but I get "HTTP Error 403: Forbidden " when I schedule it.
I have done extensive search, can't find the solution.
Here is the code:
import pandas as pd
df = pd.read_html('http://www.domanname.com')
The code run in the shell without issue. I can also run it in Jupyter without isse. It was running fine with the scheduler on a couple of days ago without a issue. I now get this error. I have tried changing python version, various suggestions on this forum, still doesn't work. The folder is also fine because I can use the same code to connect to the database. It's just the read_html part that throws the 403 error. I have been a paying customer for more that 2 weeks, so whitelisting is not the issue.What else could cause this issue?
Michael