'Scraping With Python - Works Locally But Not on Server

I'm sending a GET request to a URL which returns a JSON as a response. Locally this works perfectly (I had to add headers to bypass).

However, when running the very same script on my server (ubuntu machine of Digital Ocean) I do not get any response.

I thought to myself it might be an IP issue, so I tried to use proxy, I tried free proxies, then I bought several prmium proxies - None of it works.

Any ideas on how to solve this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source