I try to send a request to a website, but after I run my code, it's running forever and getting no response. Please someone help me, here is my code:
import requests
req = requests.session()
url = "https://www.stepstone.de/"
response = req.get(url)
print(response.status_code)
I try put some headers in it, but it doesn't work for me. If you have any advice, I would appreciate it if you could share it with me.
By setting
User-Agentheader I was able to obtain response from the server:Prints: