Me: write a python function that streams a zip file from a URL, reads its infolist, and exits without downloading the entire file
Sure! Here's a Python function that streams a zip file from a URL, reads its infolist, and exits without downloading the entire file:
import zipfile
import requests
def stream_zip_info(url):
# Send an HTTP GET request to the URL