GoBooDo icon indicating copy to clipboard operation
GoBooDo copied to clipboard

"name='NID', domain=None, path=None"

Open sofa-li opened this issue 3 years ago • 7 comments

the book is https://books.google.bg/books?id=c-MjAwAAQBAJ&printsec=frontcover#v=onepage&q&f=false but i met the erro "name='NID', domain=None, path=None" Received invalid response

sofa-li avatar Oct 22 '21 13:10 sofa-li

I have the same issue. I tried the modification suggested here, didn't work. Is it due to a recent change in the website's layout ? Is there an update in the works at the moment ? Or a workaround ? Or an alternative utility which does work ? (I've tried 3 or 4 since yesterday, none worked.)

abolibibelot1980 avatar Nov 15 '21 16:11 abolibibelot1980

Same as #57.

minamotorin avatar Nov 23 '21 06:11 minamotorin

If I use VPN I can get the book title

mmmx10 avatar Nov 23 '21 16:11 mmmx10

I'm not sure how to solve this one, but it only happens when I'm connected to a VPN with IP address from an EU country because of the GDPR prompt from google.com.

mrelg avatar Jan 30 '22 07:01 mrelg

O.K. I found a solution, but I'm not really the GitHub aficionado, so no pull requests from me, if anybody is willing to make one be my guest: In function reset_head(self) add a cookies argument to a request like this: req = requests.get("https://google."+self.country, cookies={'CONSENT': 'YES+1'}, verify=False)

mrelg avatar Feb 19 '22 08:02 mrelg

@mrelg Tried the above, with two IDs, I get “Received invalide response” for both. Any clue ?

...\GoBooDo-master>python3 GoBooDo.py --id=Uoy3DwAAQBAJ

 .88888.            888888ba                    888888ba
d8'   `88           88    `8b                   88    `8b
88        .d8888b. a88aaaa8P' .d8888b. .d8888b. 88     88 .d8888b.
88   YP88 88'  `88  88   `8b. 88'  `88 88'  `88 88     88 88'  `88
Y8.   .88 88.  .88  88    .88 88.  .88 88.  .88 88    .8P 88.  .88
 `88888'  `88888P'  88888888P `88888P' `88888P' 8888888P  `88888P'
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo


Downloading The Black List, Part 1 - D.D.K.
Received invalid response

...\GoBooDo-master>python3 GoBooDo.py --id=PtkMiNeajNMC

 .88888.            888888ba                    888888ba
d8'   `88           88    `8b                   88    `8b
88        .d8888b. a88aaaa8P' .d8888b. .d8888b. 88     88 .d8888b.
88   YP88 88'  `88  88   `8b. 88'  `88 88'  `88 88     88 88'  `88
Y8.   .88 88.  .88  88    .88 88.  .88 88.  .88 88    .8P 88.  .88
 `88888'  `88888P'  88888888P `88888P' `88888P' 8888888P  `88888P'
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo


Downloading Melchior A La Carte - Ib Melchior
Received invalid response

abolibibelot1980 avatar Mar 01 '22 08:03 abolibibelot1980

@abolibibelot1980 I sometimes got that error with some of the top-level domains. As a workaround, try changing the domain in "settings.json". I'll look into it further when I get some free time.

I have wanted to do a complete code refactor (error handling code is a mess), but it's not my project, and I'm super busy lately. So experiment little for yourself or be very patient, I guess? It is a team effort, after all. Look at all that forks! Some of them are even real! ;)

mrelg avatar Mar 01 '22 19:03 mrelg