# coding:utf-8
import os
import platform
from Code import etc
if platform.python_version()[0] == '3':
    from configparser import ConfigParser
else:
    from ConfigParser import ConfigParser
def set_config(conf):
    fp = 'crawlProxies.conf'
    iliststr = conf.get('all','name')
    iliststr = iliststr.strip('[]').split(', ')
    ilist = [i.strip("'") for i in iliststr]
    for i in ilist:
        conf_sub = ConfigParser()
        sub_conf = os.path.join(etc.conf_path,i+'.conf')
        conf_sub.read(sub_conf)
        print (sub_conf)
        if not conf_sub.has_section(i):
            conf_sub.add_section(i)
            if i == 'mimvp':
                conf_sub.set(i,'yn','True')
            else:
                conf_sub.set(i, 'yn', 'False')
            conf_sub.set(i,'last_time','0')
            conf_sub.set(i,'interval_time','60')
        with open(sub_conf,'w')as f:
            conf_sub.write(f)

b14795d273811432564544bfc18fb839b633956c
<mask token>

<mask token>


def set_config(conf):
    fp = 'crawlProxies.conf'
    iliststr = conf.get('all', 'name')
    iliststr = iliststr.strip('[]').split(', ')
    ilist = [i.strip("'") for i in iliststr]
    for i in ilist:
        conf_sub = ConfigParser()
        sub_conf = os.path.join(etc.conf_path, i + '.conf')
        conf_sub.read(sub_conf)
        print(sub_conf)
        if not conf_sub.has_section(i):
            conf_sub.add_section(i)
            if i == 'mimvp':
                conf_sub.set(i, 'yn', 'True')
            else:
                conf_sub.set(i, 'yn', 'False')
            conf_sub.set(i, 'last_time', '0')
            conf_sub.set(i, 'interval_time', '60')
        with open(sub_conf, 'w') as f:
            conf_sub.write(f)

<mask token>
if platform.python_version()[0] == '3':
    from configparser import ConfigParser
else:
    from ConfigParser import ConfigParser


def set_config(conf):
    fp = 'crawlProxies.conf'
    iliststr = conf.get('all', 'name')
    iliststr = iliststr.strip('[]').split(', ')
    ilist = [i.strip("'") for i in iliststr]
    for i in ilist:
        conf_sub = ConfigParser()
        sub_conf = os.path.join(etc.conf_path, i + '.conf')
        conf_sub.read(sub_conf)
        print(sub_conf)
        if not conf_sub.has_section(i):
            conf_sub.add_section(i)
            if i == 'mimvp':
                conf_sub.set(i, 'yn', 'True')
            else:
                conf_sub.set(i, 'yn', 'False')
            conf_sub.set(i, 'last_time', '0')
            conf_sub.set(i, 'interval_time', '60')
        with open(sub_conf, 'w') as f:
            conf_sub.write(f)

import os
import platform
from Code import etc
if platform.python_version()[0] == '3':
    from configparser import ConfigParser
else:
    from ConfigParser import ConfigParser


def set_config(conf):
    fp = 'crawlProxies.conf'
    iliststr = conf.get('all', 'name')
    iliststr = iliststr.strip('[]').split(', ')
    ilist = [i.strip("'") for i in iliststr]
    for i in ilist:
        conf_sub = ConfigParser()
        sub_conf = os.path.join(etc.conf_path, i + '.conf')
        conf_sub.read(sub_conf)
        print(sub_conf)
        if not conf_sub.has_section(i):
            conf_sub.add_section(i)
            if i == 'mimvp':
                conf_sub.set(i, 'yn', 'True')
            else:
                conf_sub.set(i, 'yn', 'False')
            conf_sub.set(i, 'last_time', '0')
            conf_sub.set(i, 'interval_time', '60')
        with open(sub_conf, 'w') as f:
            conf_sub.write(f)

# coding:utf-8
import os
import platform
from Code import etc
if platform.python_version()[0] == '3':
    from configparser import ConfigParser
else:
    from ConfigParser import ConfigParser
def set_config(conf):
    fp = 'crawlProxies.conf'
    iliststr = conf.get('all','name')
    iliststr = iliststr.strip('[]').split(', ')
    ilist = [i.strip("'") for i in iliststr]
    for i in ilist:
        conf_sub = ConfigParser()
        sub_conf = os.path.join(etc.conf_path,i+'.conf')
        conf_sub.read(sub_conf)
        print (sub_conf)
        if not conf_sub.has_section(i):
            conf_sub.add_section(i)
            if i == 'mimvp':
                conf_sub.set(i,'yn','True')
            else:
                conf_sub.set(i, 'yn', 'False')
            conf_sub.set(i,'last_time','0')
            conf_sub.set(i,'interval_time','60')
        with open(sub_conf,'w')as f:
            conf_sub.write(f)
