Running `requests` library returns different results for one website

I am running a python script that scrapes a website. On my local machine the streamlit works perfectly well. But when I deployed the script to streamlit sharing, the page displayed on the website changed. I found it out by getting the response headers both from my local script and from the deployed app.

What could be the reason of this behavior? Does the streamlit cloud change the HTTP requests somehow? The website is very sensitive so it might be blocking the streamlit cloud servers.

Please help…

I’m not understanding what you’re describing here. What page do you receive locally and what do you receive via Streamlit sharing? Is this an authenticated page?