def __init__(self, day_diff_array=[], do_makeups=False): BusCatcher.__init__(self, day_diff_array, COMPANY_NAME, do_makeups, use_proxies=True) self.prepare_for_launch()
def __init__(self,day_diff_array=[],do_makeups=False): BusCatcher.__init__(self,day_diff_array,COMPANY_NAME,do_makeups) self.prepare_for_launch()
""" This script was used to download zip files from my gmail containing proxy lists supplied by HideMyAss.com and then unzip them. """ import email import imaplib import os import glob import zipfile from MyController import BusCatcher bus_catcher = BusCatcher() bus_catcher.setup_my_logger(summary_only=True,logger_name="Proxy_loader") my_logger = bus_catcher.my_logger detach_dir = '.' if 'attachments' not in os.listdir(detach_dir): os.mkdir('attachments') proxy_dir = "./proxy_lists" if not os.path.exists(proxy_dir): os.mkdir(proxy_dir) userName = "******" passwd = "whatismyusername" def download_attachments(): try: imapSession = imaplib.IMAP4_SSL('imap.gmail.com') typ, accountDetails = imapSession.login(userName, passwd)