from the docs: You can also access the response body as bytes, for non-text requests
you should use
also, I would not use csv name. that is a standard library module and if you need to import and use it in the future you will need to refactor the code in order to avoid conflict
you should use
text
insteadalso, I would not use csv name. that is a standard library module and if you need to import and use it in the future you will need to refactor the code in order to avoid conflict