If I do r = requests.get() then I can access the status code by r.status_code.
But when I am using s = requests.Session(), I cannot access status code
May be I am missing something. Please help in that case.
Any suggestion gratefully received. Thanks in advance.
>Solution :
With sessions you make a request with r = s.get(url), then you access it the same way with r.status_code.
import requests
s = requests.Session()
r = s.get("https://example.com")
print(r.status_code)