I didn't know exactly what to change, so I also changed the class=e things (Maybe they changed that too ) and it works now. Thanks.madwoota wrote:Yeh, they changed <div class=g> to <li class=g>, so it's a 3 character regex fix from "div class=g>" to " class=g>"Phyxion wrote:Google stopped working. I tried all versions posted here and non of them are working. Google must have changed it's code once again
Wow, you've broken onebox results if you touched the class=e sections. Just change what madwoota said and you would be fine, once in the regexp and once in the regsub below it, both found under the #normal search comment... If you go nuts changing things that don't need changing, expect those things not to work any longer. The rule is, if it isn't broken, DON'T FIX IT... LMAOPhyxion wrote:I didn't know exactly what to change, so I also changed the class=e things (Maybe they changed that too ) and it works now. Thanks.
I see, didnt now. Changed it backspeechles wrote:Wow, you've broken onebox results if you touched the class=e sections. Just change what madwoota said and you would be fine, once in the regexp and once in the regsub below it, both found under the #normal search comment... If you go nuts changing things that don't need changing, expect those things not to work any longer. The rule is, if it isn't broken, DON'T FIX IT... LMAOPhyxion wrote:I didn't know exactly what to change, so I also changed the class=e things (Maybe they changed that too ) and it works now. Thanks.
http://ereader.kiczek.com/incith-google-v1.98t.tcl
Public once again, yeah, I fixed my own version as soon as the problem appeared, sorry it took so long for the public version to get the fix too.. The fix madwoota mentions is exactly all you need to do. Google changed normal search results from a <div class=g into <li class=g. They like line items instead of page divisions now I guess...
Code: Select all
!g 时间
38,300 Results | Acrylic Jewelry Displayers: Earrings @
http://www.displayit-info.com/acrylic/jewelry/acrylic6_ear4pair.html | Hb Toulon
[alpha77(EF6)Pro-->His]: a n @
http://www.ncbi.nlm.nih.gov/pubmed/10569726 | [PDF] ¢¡¤£¦¥¨§ © £ §
¢!"£# $ % £ £& '©(§ @
http://eprints.biblio.unitn.it/archive/00000779/01/PhDTS38.pdf |
[PDF] The Informant at ChessCafe.com @
Code: Select all
-- incith-google-v1.98s.tcl
+++ incith-google-v1.98t.tcl
...
@@ -1015,7 +1020,7 @@
if {$incith::google::bold_descriptions == 0} {
regsub -all -- "\002" $no_search {} no_search
}
- set no_search [string trim $no_search]
+ set no_search [incithencode [string trim $no_search]]
}
# give results an output header with result tally.
...
stop posting code and guessing stuff. You have no idea how this script works so why post code you have no idea about....superjet wrote:incith-google-v1.98t.tcl send wrong encode to google , eggdrop-1.6.19 with utf-8 patchwhile incith-google-v1.98s.tcl works with correct encodeCode: Select all
!g 时间 38,300 Results | Acrylic Jewelry Displayers: Earrings @ http://www.displayit-info.com/acrylic/jewelry/acrylic6_ear4pair.html | Hb Toulon [alpha77(EF6)Pro-->His]: a n @ http://www.ncbi.nlm.nih.gov/pubmed/10569726 | [PDF] ¢¡¤£¦¥¨§ © £ § ¢!"£# $ % £ £& '©(§ @ http://eprints.biblio.unitn.it/archive/00000779/01/PhDTS38.pdf | [PDF] The Informant at ChessCafe.com @
which maybe due to many similar parts(as in utf-8 chatroom, charset error converted from utf-8 into ???, so it just works without encode convertion) :Code: Select all
-- incith-google-v1.98s.tcl +++ incith-google-v1.98t.tcl ... @@ -1015,7 +1020,7 @@ if {$incith::google::bold_descriptions == 0} { regsub -all -- "\002" $no_search {} no_search } - set no_search [string trim $no_search] + set no_search [incithencode [string trim $no_search]] } # give results an output header with result tally. ...
By seeing the diff file you posted, I doubt your aware what to change to fix it....lmao.. If you read back into this thread you will see the difficulty level ramps up exponentially when you get to encoding/utf-8 and if your not at the level the script is at, you won't be able to help it much. This isn't saying I haven't tried to support the utf-8 hack, it's entirely possible but it will ONLY support utf-8, and break entirely iso8859-1 support. iso8859-1 support is primarily needed for communicating with http sockets. The default communication encoding is iso8859-1. So hacking it all to utf-8, requires the script be toned way down, removing any site which communicates in iso8859-1. So It will no longer support any website issuing charset encoding as iso8859-1. So yep, google doesn't work with utf-8 because google will always send the encoding to match the language detected.superjet wrote:ok, just like you care less about the utf-8 patch, I'll hack the script by myself and fullfill someone's wish out of the thread....
roll the opensource...
Now if you've been following or using this script at all for any serious amount of time, you have discovered the debug setting and the debugnick variables. This is where the quote above comes from. Notice what Google is encoding the html returned to us in? (hint: it's underlined)<bot> url: http://www.google.com/search?q=stuff&sa ... all&num=10 charset: iso8859-1 encode_string: iso8859-1
I can dismiss further public builds as well, based upon your remark. I shall consider it done and thanks for putting it into my head...Why don't the links work anymore?superjet wrote:I've already made the new one behave normal both utf-8 cjk charsetes and ascii ones, which satisfy my need, so you can dismiss your doubt nowBy seeing the diff file you posted, I doubt your aware what to change to fix it....lmao.
The links all work again. Everything is back to normal. New version will appear sometime tomorrow with ign review replacing the old gamespot one.danzigrules wrote:sigh
why does there always have to be some arsehole in the bunch to ruin it for the rest?
I appreciate all the work you have done on this great script Speechles and I hope that you can let the comments of that putz not get under your skin.
This is one of the most used scripts that gets used in the channels my bot is in and when things go awry, it is a never ending barrage of PM's from people until it is fixed.
Tis a sad day.....