コード例 #1
0
ファイル: test_51job.py プロジェクト: mm530/lemon
    def test_check_verify_code(self):
        _51job.account_init()

        sp = _51job._51Job()
        print(_51job._51_ACCOUNT)
        sp.download_captcha(True, True)
        sp.check_verify_code(input('input verify code:'))
コード例 #2
0
ファイル: test_51job.py プロジェクト: mm530/lemon
    def test_local_test(self):
        _51job.account_init()
        ips = get_ips()
        ok_ips = get_checked_ip(ips)
        print('可以使用的IP有:%d个' % len(ok_ips), ok_ips)

        _51job.local_test(ok_ips)
コード例 #3
0
ファイル: test_51job.py プロジェクト: mm530/lemon
 def test_account_init(self):
     _51job.account_init()
     cfg = os.path.expanduser('~') + os.path.sep + '.51job.conf'
     if os.path.exists(cfg):
         with open(cfg, 'r') as f:
             print(f.read())
     print(_51job._51_ACCOUNT, _51job._51_PASSWD, _51job.KEYWORD)
コード例 #4
0
ファイル: test_51job.py プロジェクト: mm530/lemon
 def test_local_many_test_do_not_use_proxy(self):
     _51job.account_init()
     _51job.local_many_test([])
コード例 #5
0
ファイル: test_51job.py プロジェクト: mm530/lemon
 def test_local_many_test_use_special_proxy(self):
     _51job.account_init()
     ips = [IP('221.7.255.168', '80', 'https', None, None, None, None)]
     _51job.local_many_test(ips)
コード例 #6
0
ファイル: test_51job.py プロジェクト: mm530/lemon
 def test_distribute_delivery(self):
     _51job.account_init()
     _51job.distribute_delivery()