download zip and extract zip with python

## Download zip file the code ```py import requests import shutil url = "https://code-maven.com/public/developer_suvey_2019.zip" filename = "developer_survey_2019.zip"; 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 = "developer_suvey_2019.zip" z = zipfile.ZipFile(path) z.extractall() ``` If you like this post and want to contribute, leave a comment here or join this room [https://chat-to.dev/chat?q=pytho-solutions](https://chat-to.dev/chat?q=pytho-solutions) so we can talk and learn together

All comments