diff options
Diffstat (limited to 'testing/poe_account_create_test.py')
-rw-r--r-- | testing/poe_account_create_test.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/poe_account_create_test.py b/testing/poe_account_create_test.py index 24751c4a..7072597f 100644 --- a/testing/poe_account_create_test.py +++ b/testing/poe_account_create_test.py @@ -1,17 +1,20 @@ from hashlib import md5 from json import dumps from re import findall +from typing import Optional -from quora import extract_formkey -from quora.mail import Emailnator from tls_client import Session as TLS from twocaptcha import TwoCaptcha +from openai_rev.quora import extract_formkey +from openai_rev.quora.mail import Emailnator + solver = TwoCaptcha('72747bf24a9d89b4dcc1b24875efd358') class Account: - def create(proxy: None or str = None, logging: bool = False, enable_bot_creation: bool = False): + @staticmethod + def create(proxy: Optional[str] = None, logging: bool = False, enable_bot_creation: bool = False): client = TLS(client_identifier='chrome110') client.proxies = {'http': f'http://{proxy}', 'https': f'http://{proxy}'} if proxy else None |