Aug-31-2018, 11:18 AM
(Aug-31-2018, 11:13 AM)Larz60+ Wrote: Not all firewalls are written by windows.
And Even when I use MS windows, I have never had a problem downloading unless the download site was trying to prevent it.
I tested your url, and had no problem.
to use this, requests must be installed:
pip install requestsi used:
import requests def get_file(url, savefile=None, mode='w'): response = requests.get(url) if response.status_code == 200: if savefile: with open(savefile, mode) as fp: fp.write(response.content) if __name__ == '__main__': url = 'https://drive.google.com/uc?export=download&id=19LJ6Otr9p_stY5MLeEfRnA-jD8xXvK3m' get_file(url, 'pink.exe', 'wb')
thank u for ur help my brother but i need it via powershell :) i need to run this command on the system :
Quote:powershell -command "$cli = New-Object System.Net.WebClient;$cli.Headers['User-Agent'] = 'myUserAgentString';$cli.DownloadFile('https://drive.google.com/uc?export=download&id=19LJ6Otr9p_stY5MLeEfRnA-jD8xXvK3m', '%appdata%\putty.exe')"