diff --git a/README.md b/README.md index af03cac..0fcbfc7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This repository provides reverse-engineered language models from various sources - [ ] implement poe.com create bot feature (4) - [ ] poe.com chat history management (3) -- [ ] renaming the 'poe' module to 'quora' (2) +- [x] renaming the 'poe' module to 'quora' (2) - [x] add you.com api (1) @@ -17,7 +17,7 @@ This repository provides reverse-engineered language models from various sources - [Current Sites (No Authentication / Easy Account Creation)](#current-sites) - [Sites with Authentication (Will Reverse Engineer but Need Account Access)](#sites-with-authentication) - [Usage Examples](#usage-examples) - - [`poe`](#example-poe) + - [`quora (poe)`](#example-poe) - [`t3nsor`](#example-t3nsor) - [`ora`](#example-ora) - [`writesonic`](#example-writesonic) @@ -44,15 +44,15 @@ These sites will be reverse engineered but need account access: ## Usage Examples -### Example: `poe` (use like openai pypi package) - GPT-4 +### Example: `quora (poe)` (use like openai pypi package) - GPT-4 ```python -# Import poe -import poe +# Import quora (poe) +import quora -# poe.Account.create -# poe.Completion.create -# poe.StreamCompletion.create +# quora.Account.create +# quora.Completion.create +# quora.StreamCompletion.create [...] @@ -60,14 +60,14 @@ import poe #### Create Token (3-6s) ```python -token = poe.Account.create(logging = True) +token = quora.Account.create(logging = True) print('token', token) ``` #### Streaming Response ```python -for response in poe.StreamingCompletion.create(model = 'gpt-4', +for response in quora.StreamingCompletion.create(model = 'gpt-4', prompt = 'hello world', token = token): @@ -77,7 +77,7 @@ for response in poe.StreamingCompletion.create(model = 'gpt-4', #### Normal Response: ```python -response = poe.Completion.create(model = 'gpt-4', +response = quora.Completion.create(model = 'gpt-4', prompt = 'hello world', token = token) @@ -273,7 +273,7 @@ You can install these packages using the provided `requirements.txt` file. ## Repository structure: . ├── ora/ - ├── poe/ + ├── quora/ (/poe) ├── t3nsor/ ├── testing/ ├── writesonic/ diff --git a/poe/__init__.py b/quora/__init__.py similarity index 96% rename from poe/__init__.py rename to quora/__init__.py index d1cb8ae..5cae590 100644 --- a/poe/__init__.py +++ b/quora/__init__.py @@ -1,13 +1,13 @@ -from poe.api import Client as PoeClient -from poe.mail import Mail -from requests import Session -from re import search, findall -from json import loads -from time import sleep, time -from pathlib import Path -from random import choice -from urllib import parse - +from quora.api import Client as PoeClient +from quora.mail import Mail +from requests import Session +from re import search, findall +from json import loads +from time import sleep, time +from pathlib import Path +from random import choice +from urllib import parse + class PoeResponse: class Completion: diff --git a/poe/api.py b/quora/api.py similarity index 100% rename from poe/api.py rename to quora/api.py diff --git a/poe/cookies.txt b/quora/cookies.txt similarity index 77% rename from poe/cookies.txt rename to quora/cookies.txt index 0cbd6ca..3209efe 100644 --- a/poe/cookies.txt +++ b/quora/cookies.txt @@ -5,3 +5,5 @@ NEttgJ_rRQdO05Tppx6hFw== 8hZKR7MxwUTEHvO45TEViw== Eea6BqK0AmosTKzoI3AAow== pUEbtxobN_QUSpLIR8RGww== +9_dUWxKkHHhpQRSvCvBk2Q== +UV45rvGwUwi2qV9QdIbMcw== diff --git a/poe/graphql/AddHumanMessageMutation.graphql b/quora/graphql/AddHumanMessageMutation.graphql similarity index 100% rename from poe/graphql/AddHumanMessageMutation.graphql rename to quora/graphql/AddHumanMessageMutation.graphql diff --git a/poe/graphql/AddMessageBreakMutation.graphql b/quora/graphql/AddMessageBreakMutation.graphql similarity index 100% rename from poe/graphql/AddMessageBreakMutation.graphql rename to quora/graphql/AddMessageBreakMutation.graphql diff --git a/poe/graphql/AutoSubscriptionMutation.graphql b/quora/graphql/AutoSubscriptionMutation.graphql similarity index 100% rename from poe/graphql/AutoSubscriptionMutation.graphql rename to quora/graphql/AutoSubscriptionMutation.graphql diff --git a/poe/graphql/BioFragment.graphql b/quora/graphql/BioFragment.graphql similarity index 100% rename from poe/graphql/BioFragment.graphql rename to quora/graphql/BioFragment.graphql diff --git a/poe/graphql/ChatAddedSubscription.graphql b/quora/graphql/ChatAddedSubscription.graphql similarity index 100% rename from poe/graphql/ChatAddedSubscription.graphql rename to quora/graphql/ChatAddedSubscription.graphql diff --git a/poe/graphql/ChatFragment.graphql b/quora/graphql/ChatFragment.graphql similarity index 100% rename from poe/graphql/ChatFragment.graphql rename to quora/graphql/ChatFragment.graphql diff --git a/poe/graphql/ChatListPaginationQuery.graphql b/quora/graphql/ChatListPaginationQuery.graphql similarity index 100% rename from poe/graphql/ChatListPaginationQuery.graphql rename to quora/graphql/ChatListPaginationQuery.graphql diff --git a/poe/graphql/ChatPaginationQuery.graphql b/quora/graphql/ChatPaginationQuery.graphql similarity index 100% rename from poe/graphql/ChatPaginationQuery.graphql rename to quora/graphql/ChatPaginationQuery.graphql diff --git a/poe/graphql/ChatViewQuery.graphql b/quora/graphql/ChatViewQuery.graphql similarity index 100% rename from poe/graphql/ChatViewQuery.graphql rename to quora/graphql/ChatViewQuery.graphql diff --git a/poe/graphql/DeleteHumanMessagesMutation.graphql b/quora/graphql/DeleteHumanMessagesMutation.graphql similarity index 100% rename from poe/graphql/DeleteHumanMessagesMutation.graphql rename to quora/graphql/DeleteHumanMessagesMutation.graphql diff --git a/poe/graphql/DeleteMessageMutation.graphql b/quora/graphql/DeleteMessageMutation.graphql similarity index 100% rename from poe/graphql/DeleteMessageMutation.graphql rename to quora/graphql/DeleteMessageMutation.graphql diff --git a/poe/graphql/HandleFragment.graphql b/quora/graphql/HandleFragment.graphql similarity index 100% rename from poe/graphql/HandleFragment.graphql rename to quora/graphql/HandleFragment.graphql diff --git a/poe/graphql/LoginWithVerificationCodeMutation.graphql b/quora/graphql/LoginWithVerificationCodeMutation.graphql similarity index 100% rename from poe/graphql/LoginWithVerificationCodeMutation.graphql rename to quora/graphql/LoginWithVerificationCodeMutation.graphql diff --git a/poe/graphql/MessageAddedSubscription.graphql b/quora/graphql/MessageAddedSubscription.graphql similarity index 100% rename from poe/graphql/MessageAddedSubscription.graphql rename to quora/graphql/MessageAddedSubscription.graphql diff --git a/poe/graphql/MessageDeletedSubscription.graphql b/quora/graphql/MessageDeletedSubscription.graphql similarity index 100% rename from poe/graphql/MessageDeletedSubscription.graphql rename to quora/graphql/MessageDeletedSubscription.graphql diff --git a/poe/graphql/MessageFragment.graphql b/quora/graphql/MessageFragment.graphql similarity index 100% rename from poe/graphql/MessageFragment.graphql rename to quora/graphql/MessageFragment.graphql diff --git a/poe/graphql/MessageRemoveVoteMutation.graphql b/quora/graphql/MessageRemoveVoteMutation.graphql similarity index 100% rename from poe/graphql/MessageRemoveVoteMutation.graphql rename to quora/graphql/MessageRemoveVoteMutation.graphql diff --git a/poe/graphql/MessageSetVoteMutation.graphql b/quora/graphql/MessageSetVoteMutation.graphql similarity index 100% rename from poe/graphql/MessageSetVoteMutation.graphql rename to quora/graphql/MessageSetVoteMutation.graphql diff --git a/poe/graphql/SendMessageMutation.graphql b/quora/graphql/SendMessageMutation.graphql similarity index 100% rename from poe/graphql/SendMessageMutation.graphql rename to quora/graphql/SendMessageMutation.graphql diff --git a/poe/graphql/SendVerificationCodeForLoginMutation.graphql b/quora/graphql/SendVerificationCodeForLoginMutation.graphql similarity index 100% rename from poe/graphql/SendVerificationCodeForLoginMutation.graphql rename to quora/graphql/SendVerificationCodeForLoginMutation.graphql diff --git a/poe/graphql/ShareMessagesMutation.graphql b/quora/graphql/ShareMessagesMutation.graphql similarity index 100% rename from poe/graphql/ShareMessagesMutation.graphql rename to quora/graphql/ShareMessagesMutation.graphql diff --git a/poe/graphql/SignupWithVerificationCodeMutation.graphql b/quora/graphql/SignupWithVerificationCodeMutation.graphql similarity index 100% rename from poe/graphql/SignupWithVerificationCodeMutation.graphql rename to quora/graphql/SignupWithVerificationCodeMutation.graphql diff --git a/poe/graphql/StaleChatUpdateMutation.graphql b/quora/graphql/StaleChatUpdateMutation.graphql similarity index 100% rename from poe/graphql/StaleChatUpdateMutation.graphql rename to quora/graphql/StaleChatUpdateMutation.graphql diff --git a/poe/graphql/SubscriptionsMutation.graphql b/quora/graphql/SubscriptionsMutation.graphql similarity index 100% rename from poe/graphql/SubscriptionsMutation.graphql rename to quora/graphql/SubscriptionsMutation.graphql diff --git a/poe/graphql/SummarizePlainPostQuery.graphql b/quora/graphql/SummarizePlainPostQuery.graphql similarity index 100% rename from poe/graphql/SummarizePlainPostQuery.graphql rename to quora/graphql/SummarizePlainPostQuery.graphql diff --git a/poe/graphql/SummarizeQuotePostQuery.graphql b/quora/graphql/SummarizeQuotePostQuery.graphql similarity index 100% rename from poe/graphql/SummarizeQuotePostQuery.graphql rename to quora/graphql/SummarizeQuotePostQuery.graphql diff --git a/poe/graphql/SummarizeSharePostQuery.graphql b/quora/graphql/SummarizeSharePostQuery.graphql similarity index 100% rename from poe/graphql/SummarizeSharePostQuery.graphql rename to quora/graphql/SummarizeSharePostQuery.graphql diff --git a/poe/graphql/UserSnippetFragment.graphql b/quora/graphql/UserSnippetFragment.graphql similarity index 100% rename from poe/graphql/UserSnippetFragment.graphql rename to quora/graphql/UserSnippetFragment.graphql diff --git a/poe/graphql/ViewerInfoQuery.graphql b/quora/graphql/ViewerInfoQuery.graphql similarity index 100% rename from poe/graphql/ViewerInfoQuery.graphql rename to quora/graphql/ViewerInfoQuery.graphql diff --git a/poe/graphql/ViewerStateFragment.graphql b/quora/graphql/ViewerStateFragment.graphql similarity index 100% rename from poe/graphql/ViewerStateFragment.graphql rename to quora/graphql/ViewerStateFragment.graphql diff --git a/poe/graphql/ViewerStateUpdatedSubscription.graphql b/quora/graphql/ViewerStateUpdatedSubscription.graphql similarity index 100% rename from poe/graphql/ViewerStateUpdatedSubscription.graphql rename to quora/graphql/ViewerStateUpdatedSubscription.graphql diff --git a/poe/graphql/__init__.py b/quora/graphql/__init__.py similarity index 100% rename from poe/graphql/__init__.py rename to quora/graphql/__init__.py diff --git a/poe/mail.py b/quora/mail.py similarity index 100% rename from poe/mail.py rename to quora/mail.py diff --git a/quora/poe_test.py b/quora/poe_test.py new file mode 100644 index 0000000..cfc9496 --- /dev/null +++ b/quora/poe_test.py @@ -0,0 +1,13 @@ +import quora +from time import sleep + +token = quora.Account.create(proxy = 'xtekky:ogingoi2n3g@geo.iproyal.com:12321',logging = True) +print('token', token) + +sleep(2) + +for response in quora.StreamingCompletion.create(model = 'gpt-4', + prompt = 'hello world', + token = token): + + print(response.completion.choices[0].text, end="", flush=True) \ No newline at end of file diff --git a/testing/poe_test.py b/testing/poe_test.py deleted file mode 100644 index 99c3bea..0000000 --- a/testing/poe_test.py +++ /dev/null @@ -1,13 +0,0 @@ -import poe -from time import sleep - -token = poe.Account.create(proxy = 'xtekky:ogingoi2n3g@geo.iproyal.com:12321',logging = True) -print('token', token) - -sleep(2) - -for response in poe.StreamingCompletion.create(model = 'gpt-4', - prompt = 'hello world', - token = token): - - print(response.completion.choices[0].text, end="", flush=True) \ No newline at end of file