This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ftplib | |
import socket | |
import socks # socksipy (https://github.com/mikedougherty/SocksiPy) | |
class FTP(ftplib.FTP): | |
def __init__(self, host='', user='', passwd='', acct='', | |
timeout=socket._GLOBAL_DEFAULT_TIMEOUT, | |
proxyconfig=None): | |
"""Like ftplib.FTP constructor, but with an added `proxyconfig` kwarg |