I'm very confused on how to save my image after 'getting' it using requests/sessions! Please note that url, img_name, and img_end are all defined above, they take a static URL and add numbers to the end to request images corresponding to those numbers.
s = requests.Session()
s.auth = ('username', 'password')
s.headers.update({'x-test': 'true'})
s.get(url+img_name+img_end, headers={'x-test2': 'true'})
If I do print(s) I get <requests.sessions.Session object at 0x036A3710> which leads to think that my image is downloading. However if I do something like save_img = Image.open(s) I get a response that Session has no attribute read. If anyone can explain how to save the image that I requested to a file that would be amazing, I'm new to Python and this part isn't making sense. Also if my code above is wrong I basically copied the examples from http://docs.python-requests.org/en/master/user/advanced/ for what it's worth.