1
0
Fork 0
This commit is contained in:
t.me/xtekky 2023-04-22 12:54:03 +01:00
parent 2b30701b2e
commit c70a257baa

View file

@ -59,7 +59,7 @@ class Completion:
youChatSerpResults = findall(r'youChatSerpResults\ndata: (.*)\n\nevent', response.text)[0] youChatSerpResults = findall(r'youChatSerpResults\ndata: (.*)\n\nevent', response.text)[0]
thirdPartySearchResults = findall(r"thirdPartySearchResults\ndata: (.*)\n\nevent", response.text)[0] thirdPartySearchResults = findall(r"thirdPartySearchResults\ndata: (.*)\n\nevent", response.text)[0]
slots = findall(r"slots\ndata: (.*)\n\nevent", response.text)[0] #slots = findall(r"slots\ndata: (.*)\n\nevent", response.text)[0]
text = response.text.split('}]}\n\nevent: youChatToken\ndata: {"youChatToken": "')[-1] text = response.text.split('}]}\n\nevent: youChatToken\ndata: {"youChatToken": "')[-1]
text = text.replace('"}\n\nevent: youChatToken\ndata: {"youChatToken": "', '') text = text.replace('"}\n\nevent: youChatToken\ndata: {"youChatToken": "', '')
@ -67,7 +67,7 @@ class Completion:
extra = { extra = {
'youChatSerpResults' : loads(youChatSerpResults), 'youChatSerpResults' : loads(youChatSerpResults),
'slots' : loads(slots) #'slots' : loads(slots)
} }
return { return {