コード例 #1
0
 def get_captcha_key(self, captcha_image_url):
     """
     Read CAPTCHA key from shell
     """
     print('Open CAPTCHA image url: ', captcha_image_url)
     captcha_key = raw_input('Enter CAPTCHA key: ')
     return captcha_key
コード例 #2
0
ファイル: mixins.py プロジェクト: yarlson/vk
 def get_captcha_key(captcha_image_url):
     """
     Read CAPTCHA key from shell
     """
     print('Open CAPTCHA image url: ', captcha_image_url)
     captcha_key = raw_input('Enter CAPTCHA key: ')
     return captcha_key
コード例 #3
0
ファイル: mixins.py プロジェクト: itJunky/vk
 def get_access_token(self):
     logger.debug('InteractiveMixin.get_access_token()')
     access_token, access_token_expires_in = super(InteractiveMixin, self).get_access_token()
     if not access_token:
         access_token = raw_input('VK API access token: ')
         access_token_expires_in = None
     return access_token, access_token_expires_in
コード例 #4
0
ファイル: mixins.py プロジェクト: itJunky/vk
 def on_captcha_is_needed(self, url):
     """
     Read CAPTCHA key from shell
     """
     print('Open captcha url:', url)
     captcha_key = raw_input('Enter captcha key: ')
     return captcha_key
コード例 #5
0
ファイル: mixins.py プロジェクト: backdorus/vk
    def captcha_is_needed(self, error_data, method_name, **method_kwargs):
        captcha_sid = error_data.get('captcha_sid')
        captcha_img = error_data.get('captcha_img')

        print('Captcha URL: {}'.format(captcha_img))
        captcha_key = raw_input('Enter captcha text: ')

        method_kwargs['captcha_sid'] = captcha_sid
        method_kwargs['captcha_key'] = captcha_key
        return self(method_name, **method_kwargs)
コード例 #6
0
ファイル: mixins.py プロジェクト: akropotov/vk
    def captcha_is_needed(self, error_data, method_name, **method_kwargs):
        captcha_sid = error_data.get("captcha_sid")
        captcha_img = error_data.get("captcha_img")

        print("Captcha URL: {}".format(captcha_img))
        captcha_key = raw_input("Enter captcha text: ")

        method_kwargs["captcha_sid"] = captcha_sid
        method_kwargs["captcha_key"] = captcha_key
        return self(method_name, **method_kwargs)
コード例 #7
0
ファイル: mixins.py プロジェクト: leo-code/vk
    def captcha_is_needed(self, error_data, method_name, **method_kwargs):
        captcha_sid = error_data.get('captcha_sid')
        captcha_img = error_data.get('captcha_img')

        print('Captcha URL: {}'.format(captcha_img))
        captcha_key = raw_input('Enter captcha text: ')

        method_kwargs['captcha_sid'] = captcha_sid
        method_kwargs['captcha_key'] = captcha_key
        return self(method_name, **method_kwargs)
コード例 #8
0
 def get_auth_check_code(self):
     """
     Read Auth code from shell
     """
     auth_check_code = raw_input('Auth check code: ')
     return auth_check_code.strip()
コード例 #9
0
 def get_user_login(self):
     user_login = raw_input('VK user login: ')
     return user_login.strip()
コード例 #10
0
ファイル: mixins.py プロジェクト: yarlson/vk
 def get_auth_check_code():
     """
     Read Auth code from shell
     """
     auth_check_code = raw_input('Auth check code: ')
     return auth_check_code.strip()
コード例 #11
0
 def get_captcha_key(self, captcha_image_url):
     print('Open CAPTCHA image url: ', captcha_image_url)
     captcha_key = raw_input('Enter CAPTCHA key: ')
     return captcha_key
コード例 #12
0
ファイル: mixins.py プロジェクト: nmakhotkin/vk
 def get_auth_code(self):
     """
     Reload this in child
     """
     return raw_input("get 2-auth code: ")
コード例 #13
0
ファイル: mixins.py プロジェクト: nmakhotkin/vk
 def get_captcha_key(self, url):
     """
     Reload this in child
     """
     print('Open captcha url:', url)
     return raw_input('Enter captcha key: ')
コード例 #14
0
 def get_auth_code(self):
     """
     Reload this in child
     """
     return raw_input("get 2-auth code: ")
コード例 #15
0
 def get_captcha_key(self, url):
     """
     Reload this in child
     """
     print('Open captcha url:', url)
     return raw_input('Enter captcha key: ')
コード例 #16
0
ファイル: mixins.py プロジェクト: leo-code/vk
 def get_auth_code(self):
     return raw_input("get 2-auth code: ")
コード例 #17
0
ファイル: mixins.py プロジェクト: yarlson/vk
 def get_user_login():
     user_login = raw_input('VK user login: ')
     return user_login.strip()