summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-20 10:49:30 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-20 10:49:30 +0200
commitb88dbfe4d38ade044473bc040b91db2f849de214 (patch)
tree6872b1b1b96a10b9f29af08c39db9e4f39c4a3be
parentpoe.com graphql dir update (diff)
downloadgpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.tar
gpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.tar.gz
gpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.tar.bz2
gpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.tar.lz
gpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.tar.xz
gpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.tar.zst
gpt4free-b88dbfe4d38ade044473bc040b91db2f849de214.zip
-rw-r--r--quora/__init__.py5
-rw-r--r--quora/cookies.txt1
2 files changed, 5 insertions, 1 deletions
diff --git a/quora/__init__.py b/quora/__init__.py
index c6e5fdc2..56e10dc7 100644
--- a/quora/__init__.py
+++ b/quora/__init__.py
@@ -11,6 +11,7 @@ from urllib import parse
from os import urandom
from hashlib import md5
from json import dumps
+from pypasser import reCaptchaV3
def extract_formkey(html):
script_regex = r'<script>if\(.+\)throw new Error;(.+)</script>'
@@ -193,12 +194,14 @@ class Account:
client.headers["poe-formkey"] = extract_formkey(client.get('https://poe.com/login').text)
client.headers["poe-tchannel"] = client.get('https://poe.com/api/settings').json()['tchannelData']['channel']
+ token = reCaptchaV3('https://www.recaptcha.net/recaptcha/enterprise/anchor?ar=1&k=6LflhEElAAAAAI_ewVwRWI9hsyV4mbZnYAslSvlG&co=aHR0cHM6Ly9wb2UuY29tOjQ0Mw..&hl=en&v=vkGiR-M4noX1963Xi_DB0JeI&size=invisible&cb=hhps5wd06eue')
+
payload = dumps(separators = (',', ':'), obj = {
'queryName': 'MainSignupLoginSection_sendVerificationCodeMutation_Mutation',
'variables': {
'emailAddress': mail_address,
'phoneNumber': None,
- 'recaptchaToken': None,
+ 'recaptchaToken': token
},
'query': 'mutation MainSignupLoginSection_sendVerificationCodeMutation_Mutation(\n $emailAddress: String\n $phoneNumber: String\n $recaptchaToken: String\n) {\n sendVerificationCode(verificationReason: login, emailAddress: $emailAddress, phoneNumber: $phoneNumber, recaptchaToken: $recaptchaToken) {\n status\n errorMessage\n }\n}\n',
})
diff --git a/quora/cookies.txt b/quora/cookies.txt
index ba557460..6a23d2f6 100644
--- a/quora/cookies.txt
+++ b/quora/cookies.txt
@@ -18,3 +18,4 @@ oyae3iClomSrk6RJywZ4iw==
wfUfJIlwQwUss8l-3kDt3w==
f6Jw_Nr0PietpNCtOCXJTw==
6Jc3yCs7XhDRNHa4ZML09g==
+3vy44sIy-ZlTMofFiFDttw==