def __init__(self):
        DaemonUtil.__init__(self, 'verifier_manager')
        self.crawled_proxys = []

        parser          = OptionParser()
        parser.add_option("--gen", action="store_true")
        parser.add_option("--flag", action="store", default='')
        parser.add_option("--hidemyass", action="store_true")
        parser.add_option("--free_proxy_list", action="store_true")
        parser.add_option("--freeproxylists", action="store_true")
        (self.opt, others) = parser.parse_args()

        self.db_conn = MySQLOperator()
        if not self.db_conn.Connect(**DB_CONF):
            logging.error("db error")
            sys.exit()
    def __init__(self):
        DaemonUtil.__init__(self, "baidu_keyword_scrapy_manager")

        self.task_db_conn = MySQLOperator()
        if not self.task_db_conn.Connect(**settings.DB_CONF):
            raise Exception, "db error"