def get_auth_pair(url): if Entrance is not None: try: return Entrance(url).get_ticket() except DecaptchaFailure: print('Automated decaptcha failed.') else: print('crawler.decaptcha not available (requires tesseract >= 3.03).') print('Please provide valid ACIXSTORE and auth_num from') print(url) ACIXSTORE = input('ACIXSTORE: ') auth_num = input('auth_num: ') return ACIXSTORE, auth_num
def update_keypair(self): self._acixstore, self._captcha = Entrance( self.form_url, self.form_action_url).get_ticket()