When accessing 'https://testtest-api.com/logs' (fake website), it instantly downloads an Excel file to my computer without loading any webpage. Is there a way to download it into my python's project directory?
When I print "content", I get some kind of "bit" version of the Excel, but how can I get the Excel file in and of itself?
import requests
url = 'https://testtest-api.com/logs'
response = requests.get(url)
print(response.content)
b'Fruit, Price, ....\n ...'