In requests library, if you need to execute
curl http://www.example.com/file.xlsx
The command is
response = requests.get('http://www.example.com/file.xlsx')
What If I want to execute the command with -O option?
curl http://www.example.com/file.xlsx -O
How do I achieve that?
Ooption or the requests equivalent of curl commandcurl http://www.example.com/file.xlsx -Ousing python