lorenzodifuccia / safaribooks

Download and generate EPUB of your favorite books from O'Reilly Learning (aka Safari Books Online) library.
Do What The F*ck You Want To Public License
4.65k stars 691 forks source link

https://www.google.com/?q=Why+am+I+on+this+blacklist? #268

Closed chel034 closed 3 years ago

chel034 commented 3 years ago

[19/May/2021 15:39:08] Unhandled Exception: 'next' (type: KeyError) [19/May/2021 15:39:08] Last request done: URL: https://www.google.com/?q=Why+am+I+on+this+blacklist DATA: None OTHERS: {}

200
Date: Wed, 19 May 2021 19:39:07 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=UTF-8
Strict-Transport-Security: max-age=31536000
BFCache-Opt-In: unload
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Content-Encoding: gzip
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Set-Cookie: 1P_JAR=2021-05-19-19; expires=Fri, 18-Jun-2021 19:39:07 GMT; path=/; domain=.google.com; Secure; SameSite=none, NID=216=muxQNHctgg_aUPrNkB2H4O1TrzUSBRq_Xnk2dzmHxxsRDmlfDDRopv-8rBF4Z_oFIMQNGTBGdtH_OjR6741hSC-d6C4dgbcG29Aq6JyESWQn__fqbwmaeqmko3-tDZ7mRTkgaEICBHACMqcb9acXAjkty5U7jpUknShM4KoyYL4; expires=Thu, 18-Nov-2021 19:39:07 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=none
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Transfer-Encoding: chunked
ricardosilva86 commented 3 years ago

Started to have the same issue a few minutes ago.

masterandservant commented 3 years ago

[19/May/2021 23:43:53] Last request done: URL: https://www.google.com/?q=Why+is+stealing+wrong DATA: None OTHERS: {}

200
Date: Wed, 19 May 2021 21:43:53 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=UTF-8
Strict-Transport-Security: max-age=31536000
BFCache-Opt-In: unload
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Content-Encoding: gzip
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Set-Cookie: CONSENT=PENDING+274; expires=Fri, 01-Jan-2038 00:00:00 GMT; path=/; domain=.google.com; Secure
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Transfer-Encoding: chunked

very funny, haha, very funny...

mavalderrama commented 3 years ago

same here

vkhoilq commented 3 years ago

+1 hahaha

jernkuan commented 3 years ago

Try changing the user agent in the header of safaribooks.py to

"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36",

mavalderrama commented 3 years ago

Try changing the user agent in the header of safaribooks.py to

"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36",

this worked for me thanks

vkhoilq commented 3 years ago

worked for me too, tks

lorenzodifuccia commented 3 years ago

Let's try c872f22...

mavalderrama commented 3 years ago

Let's try c872f22...

thanks, this commit fixed the problem

chel034 commented 3 years ago

thanks, this problem is fixed, I close issue.

Bomberdash commented 3 years ago

Thank you mavalderrama! It working

standurside commented 3 years ago

thanx so much, It Worked.