diff options
author | Raju Komati <komatiraju032@gmail.com> | 2023-04-27 22:57:06 +0200 |
---|---|---|
committer | Raju Komati <komatiraju032@gmail.com> | 2023-04-27 22:57:06 +0200 |
commit | b206a1eb6364e519741ceb89e3f3b63910b4e1ef (patch) | |
tree | a5b02f50f60f4e307fa719f053b88f5df478b4e3 /testing/poe_account_create_test.py | |
parent | added main module for accessing all services (diff) | |
download | gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.tar gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.tar.gz gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.tar.bz2 gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.tar.lz gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.tar.xz gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.tar.zst gpt4free-b206a1eb6364e519741ceb89e3f3b63910b4e1ef.zip |
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 |