download zip and extract zip with python

## Download zip file the code ```py import requests import shutil url = "" filename = ""; res = request.get(url, stream=True) print(res.status_code) if res.status_code == 200: with open(filename, "wb") as fh: res.raw.decode_content shutil.copyfileobj(res.raw,fh) ``` ## Extract zip file the code ```py import zipfile path = "" z = zipfile.ZipFile(path) z.extractall() ``` If you like this post and want to contribute, leave a comment here or join this room []( so we can talk and learn together

All comments