????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.116 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/Python-3.6.3/PCbuild/ |
Upload File : |
# Simple Python script to download a file. Used as a fallback # when other more reliable methods fail. # from __future__ import print_function import sys try: from requests import get except ImportError: try: from urllib.request import urlretrieve USING = "urllib.request.urlretrieve" except ImportError: try: from urllib import urlretrieve USING = "urllib.retrieve" except ImportError: print("Python at", sys.executable, "is not suitable", "for downloading files.", file=sys.stderr) sys.exit(2) else: USING = "requests.get" def urlretrieve(url, filename): r = get(url, stream=True) r.raise_for_status() with open(filename, 'wb') as f: for chunk in r.iter_content(chunk_size=1024): f.write(chunk) return filename if __name__ == '__main__': if len(sys.argv) != 3: print("Usage: urlretrieve.py [url] [filename]", file=sys.stderr) sys.exit(1) URL = sys.argv[1] FILENAME = sys.argv[2] print("Downloading from", URL, "to", FILENAME, "using", USING) urlretrieve(URL, FILENAME)