-
Notifications
You must be signed in to change notification settings - Fork 60
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
Problems with connecting #57
Comments
Same here |
Maybe the cause is that the cookie from https://google.{country} does not have key I wrote short test program. In my environment, this work (KeyError does not occurs). #!/usr/bin/env python3
# This program is in the public domain and no warranty.
import json
import requests
with open('settings.json') as ofile:
country = json.load(ofile)['country']
print(country)
req = requests.get("https://google."+country,verify=False)
print(req.cookies['NID']) Commenting out line 58 of - 'Cookie': "NID=" + str(req.cookies['NID']),
+ #'Cookie': "NID=" + str(req.cookies['NID']), |
#63 in reset_head(self) |
When trying to fetch a book, I am persistently getting this error:
"name='NID', domain=None, path=None"
Received invalid response
Can anyone help?
The text was updated successfully, but these errors were encountered: