summaryrefslogtreecommitdiffstats
path: root/poe/__init__.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-06 21:24:04 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-06 21:24:04 +0200
commit76571f25911657180ee17eed7b302a363e7562fc (patch)
treef3c1a8eae0839f0b55e741622004a469baff76c7 /poe/__init__.py
parentimportant note (diff)
downloadgpt4free-76571f25911657180ee17eed7b302a363e7562fc.tar
gpt4free-76571f25911657180ee17eed7b302a363e7562fc.tar.gz
gpt4free-76571f25911657180ee17eed7b302a363e7562fc.tar.bz2
gpt4free-76571f25911657180ee17eed7b302a363e7562fc.tar.lz
gpt4free-76571f25911657180ee17eed7b302a363e7562fc.tar.xz
gpt4free-76571f25911657180ee17eed7b302a363e7562fc.tar.zst
gpt4free-76571f25911657180ee17eed7b302a363e7562fc.zip
Diffstat (limited to '')
-rw-r--r--poe/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/poe/__init__.py b/poe/__init__.py
index 3f75ba14..d1cb8ae5 100644
--- a/poe/__init__.py
+++ b/poe/__init__.py
@@ -1,6 +1,6 @@
from poe.api import Client as PoeClient
from poe.mail import Mail
-from tls_client import Session
+from requests import Session
from re import search, findall
from json import loads
from time import sleep, time
@@ -48,11 +48,10 @@ class PoeResponse:
def json(self) -> dict:
return self.response_dict
-
class Account:
def create(proxy: None or str = None, logging: bool = False):
- client = Session(client_identifier = "chrome110")
+ client = Session()
client.proxies = {
'http': f'http://{proxy}',
'https': f'http://{proxy}'} if proxy else None