예제 #1
0
    def initdata(self):
        self.phone = None
        self.pwd = None
        self.begintime = None
        self.endstime = None
        self.try_count = 0      #初始化出错尝试次数
        self.readnum = random.randint(1, 2)     #初始化阅读次数
        self.issign = False
        #选择初始化接码平台
        if self.code_platform == "feima":
            self.code = Feima(self.code_user, self.code_pwd, 24394)
        elif self.code_platform == "yama":
            self.code = Yama(self.code_user, self.code_pwd, None)
        elif self.code_platform == "yima":
            self.code = Yima(self.code_user, self.code_pwd, None)
        elif self.code_platform == "ailezan":
            self.code = Ailezan(self.code_user, self.code_pwd, 26320)
        elif self.code_platform == "jima":
            self.code = Jima(self.code_user, self.code_pwd, None)
        elif self.code_platform == "jiuma":
            self.code = Jiuma(self.code_user, self.code_pwd, None)
        else:
            self.code = Shenhua(self.code_user, self.code_pwd, 82914)

        return self.begin
예제 #2
0
    def initdata(self):
        self.phone = None
        self.pwd = None
        self.begintime = None
        self.endstime = None
        self.try_count = 0  #初始化出错尝试次数
        self.readnum = random.randint(1, 1)  #初始化阅读次数
        #初始化阅读菜单
        self.ismenu1 = True
        self.ismenu2 = True
        self.ismenu3 = True
        self.issign = False
        #选择初始化接码平台
        if self.code_platform == "feima":
            self.code = Feima(self.code_user, self.code_pwd, None)
        elif self.code_platform == "yama":
            self.code = Yama(self.code_user, self.code_pwd, None)
        elif self.code_platform == "yima":
            self.code = Yima(self.code_user, self.code_pwd, None)
        elif self.code_platform == "ailezan":
            self.code = Ailezan(self.code_user, self.code_pwd, 25314)
        elif self.code_platform == "jima":
            self.code = Jima(self.code_user, self.code_pwd, None)
        elif self.code_platform == "jiuma":
            self.code = Jiuma(self.code_user, self.code_pwd, None)
        elif self.code_platform == "shenhua":
            self.code = Shenhua(self.code_user, self.code_pwd, None)

        return self.begin
예제 #3
0
파일: testSDK.py 프로젝트: cash2one/brush-1
import time

# from jiema.jiumaSDK import Jiuma
# from jiema.feimaSDK import Feima
# from jiema.yamaSDK import Yama
from jiema.ailezanSDK import Ailezan
# from jiema.jimaSDK import Jima
# from jiema.shenhuaSDK import Shenhua
# from jiema.yimaSDK import Yima

# code = Jiuma("xiaoxiaozhuan", "meiriq2014", 17564)
# code = Feima("xiaoxiaozhuan", "meiriq2014", 2055)
# code = Yama("xiaoxiaozhuan", "meiriq2014", 599)
code = Ailezan("api-4tuoz9od", "meiriq2014", 34379)
# code = Jima("xiaoxiaozhuan", "meiriq2014", 170)
# code = Shenhua("xiaoxiaozhuan", "meiriq2014", 37062)
# code = Yima("xiaoxiaozhuan", "meiriq2014", 26)

code.login()
time.sleep(1)
phone_num = code.getPhone(locationMatching="include", locationLevel="p", location="江苏")
# print("手机号码是:" + str(phone_num))
# if phone_num == "系统没有找到此号码":
#     print("没号码")
#     exit(0)
# 15634877475
time.sleep(5)
# captcha = code.waitForMessage(r'验证码(\d+)', phone_num)
# print("验证码是:" + str(captcha))
code.releasePhone(phone_num)
# code.addblackPhone(phone_num)