-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to get response #13
Comments
https://github.com/acheong08/Bard |
To retrieve the SNlM0e value from Bard, you must include an additional cookie in the request. Specifically, you need to send the key-value pair for __Secure-1PSIDTS in the request. You can place this key-value pair just below the entry for __Secure-1PSID. |
Thanks for sharing that . |
Yeah sure, thanks for the pull request. I will review it and provide feedback this week. |
When running it seems form me it's failing at this functionality.
def __get_snlm0e(self): resp = self.session.get(url="https://bard.google.com/", timeout=10) # Find "SNlM0e":"<ID>" if resp.status_code != 200: raise Exception("Could not get Google Bard") print(resp.text) exit(0) SNlM0e = re.search(r"SNlM0e\":\"(.*?)\"", resp.text).group(1) return SNlM0e
For some reason he cannot finds the SNlM0e in the response text
The text was updated successfully, but these errors were encountered: