#!/usr/bin/env python import requests url = "https://download.sysinternals.com/files/PSTools.zip" r = requests.get(url, allow_redirects=True) open("PSTools.zip", 'wb').write(r.content)