# Path: base/config.py

# 
# Path: auth/exceptions.py
# class OOIAuthException(OOIBaseException):
#     pass


import aiohttp
import asyncio
import json
import re
import time
from urllib.parse import urlparse, parse_qs
from base import config
from auth.exceptions import OOIAuthException
        "203.104.209.39",
        "203.104.209.55",
        "203.104.209.102",
    )

    # 伪装成Win7 x64上的IE11
    user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko'

    # 匹配网页中所需信息的正则表达式
    patterns = {'dmm_token': re.compile(r'http-dmm-token" content="([\d|\w]+)"'),
                'token': re.compile(r'token" content="([\d|\w]+)"'),
                'reset': re.compile(r'認証エラー'),
                'osapi': re.compile(r'URL\W+:\W+"(.*)",')}

    def __init__(self, login_id, password):
        """ 使用`login_id`和`password`来初始化认证对象。
        `login_id`为登录DMM网站所需的用户名，一般为电子邮件地址，`password`为登录所需的密码。
        仅支持用DMM账号登录，不支持Facebook和Google+账号登录。

        :param login_id: str
        :param password: str
        :return: none
        """

        # 初始化登录变量
        self.login_id = login_id
        self.password = password

        # 初始化aiohttp会话，如果设定了代理服务器，则通过代理服务器发起会话
        if config.proxy:

# Path: base/config.py

# 
# Path: auth/exceptions.py
# class OOIAuthException(OOIBaseException):
#     pass


# Path: auth/kancolle.py
import aiohttp
import asyncio
import json
import re
import time
from urllib.parse import urlparse, parse_qs
from base import config
from auth.exceptions import OOIAuthException

        "203.104.209.39",
        "203.104.209.55",
        "203.104.209.102",
    )

    # 伪装成Win7 x64上的IE11
    user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko'

    # 匹配网页中所需信息的正则表达式
    patterns = {'dmm_token': re.compile(r'http-dmm-token" content="([\d|\w]+)"'),
                'token': re.compile(r'token" content="([\d|\w]+)"'),
                'reset': re.compile(r'認証エラー'),
                'osapi': re.compile(r'URL\W+:\W+"(.*)",')}

    def __init__(self, login_id, password):
        """ 使用`login_id`和`password`来初始化认证对象。
        `login_id`为登录DMM网站所需的用户名，一般为电子邮件地址，`password`为登录所需的密码。
        仅支持用DMM账号登录，不支持Facebook和Google+账号登录。

        :param login_id: str
        :param password: str
        :return: none
        """

        # 初始化登录变量
        self.login_id = login_id
        self.password = password

        # 初始化aiohttp会话，如果设定了代理服务器，则通过代理服务器发起会话
        if config.proxy:

            self.connector = aiohttp.ProxyConnector(proxy=config.proxy, force_close=False)