I am running into a similar problem as the following one (unable to get response from nasdaq):
No response from `request.get()` for NASDAQ webpage
After adding user-agent, it works on my computer. However, it still does not work when I run this on AWS debian instance. I verified the following:
- Manually open the endpoint in firefox works
- Verified the user-agent is the same as the firefox one
- Requesting a different site (google.com) works
At this point, it seems that the user-agent I set was not working for some reason. Has anyone seen this and can provide some help?
Thanks.
Ye