This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

UNOFFICIAL incith-google 2.1x (Nov30,2o12)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
p
pobunjeni
Voice
Posts: 5
Joined: Sun Aug 12, 2007 6:43 am
Contact:

Post by pobunjeni »

speechles can you add new feature that google recently implement, whois for domains

if you type whois bbc.com you will get

Image
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

pobunjeni wrote:speechles can you add new feature that google recently implement, whois for domains

if you type whois bbc.com you will get

Image
<speechles> !g .com whois bbc.com
<sp33chy> 2,400 Results | Whois record for bbc.com (Created on Jul. 15, 1989 and Expires on Jul. 14, 2011) @ http://whois.domaintools.com/bbc.com | easyWhois: whois for bbc.com @ http://easywhois.com/index.php?domain=bbc.com | easyWhois: webanomics for bbcenglish.com @ http://easywhois.com/?mode=webanomics&d ... nglish.com | bbc.com - Who.is @ http://www.who.is/whois-com/ip-address/bbc.com/

<speechles> !g .com.au whois google.com
<sp33chy> 295,000 Results | Google.com - Google @ http://whois.domaintools.com/google.com | Googlemusic.com - Google Music @ http://whois.domaintools.com/googlemusic.com | Whois.Net @ http://www.whois.net/whois_new.cgi?d=google.com | CoolWhois.com - WHOIS search of googl @ http://www.coolwhois.com/d/google.com
As demonstrated, you can already do this. The problem that comes up is most of these "onebox" additions work only on the .com server (not a limitation of this script, a limitation of google, blame them). So if you've set your default to other than "com", simply reference it in your whois query and it will work "!g .com whois site.here"
M
MellowB
Voice
Posts: 24
Joined: Wed Jan 23, 2008 6:02 am
Location: Germany
Contact:

Post by MellowB »

Could it be that the !torrent trigger has stopped working or is that just me/my bot?

Getting a
[05:42:57] <Cocco> [05:42] Tcl error [incith::google::public_message]: can't read "reply": no such variable
since today.
On the keyboard of life, always keep one finger on the ESC key.
d
djevrek
Voice
Posts: 11
Joined: Tue Jul 31, 2007 4:05 am

Post by djevrek »

I don't know is this a problem with eggdrop or your script, but when i type !wiki .sr serbia or !wiki .sr@sr-el serbia i got bot give me this.

<Moonshine> !wiki .sr serbia
<Spremna> Србија | Република Србија је континентална држава која се налази у југоисточној Европи (на Балканском полуострву) и у средњој Европи (Панонској низији). У саставу Републике Србије су и две аутономне покрајине Војводина и
<Spremna> Косово и Метохија. Србија нема суверенитет над Косовом и Метохијом од НАТО бомбардовања СРЈ, а покрајина је била под протекторатом Уједињених нација. Косовски Албанци, који чине Ð°Ð¿Ñ @ http://sr.wikipedia.org/wiki/Serbia

Same errors with latin characters

<Moonshine> !wiki .sr@sr-el ubuntu
<Spremna> Ubuntu | Ubuntu je Linux distribucija koja je uglavnom namenjena korišćenju na desktop računarima. Baziran na distribuciji Debijan, Ubuntu najviše pažnje posvećuje lakoći korišćenja, slobodi od ikakvih ograničenja, redovnom objavljivanju novih izdanja i lakoći instalacije. Ubuntu sponzoriše privatna kompanija južnoafričkog biznismena Marka Šatlvorta, Kanonikal. Naziv distribucije potiče
<Spremna> od afričke ideologije ubuntu (otprilike - „humanost prema drugima“), mada su predložena i druga značenja. Najnovije izdanje distribucije je verzija 7.10 (Gutsy Gibbon), koja je izdata 18. oktobra 2007. godine. Verzija 8.04 (Hardy Heron) bi po rasporedu trebalo da bude objavljena 19. aprila 2008. godine. Ubuntu teŠ@ http://sr.wikipedia.org/sr-el/Ubuntu

Great job with whois from google and this new stuff for sr wikipedia. THANKS!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

MellowB wrote:Could it be that the !torrent trigger has stopped working or is that just me/my bot?

Getting a
[05:42:57] <Cocco> [05:42] Tcl error [incith::google::public_message]: can't read "reply": no such variable
since today.
<speechles> !t legal torrents
<sp33chy> 500 torrents | 24 Jan 08/Books IKEA 2008 Catalog 372 Pages -LegalTorren (11.26 MB, 147s, 4p) @ http://mininova.org/get/1126452 | 06 Oct 07/Books How To Use Your Mind eBooK PDF -LegalTor (482.51 KB, 84s, 1p) @ http://mininova.org/get/925484 | 18 Dec 07/Books How To Use Your Mind eBooK PDF -LegalTor (482.51 KB, 67s, 1p) @ http://mininova.org/get/1050965 |
<sp33chy> www.mininova.org/search/legal+torrents/seeds
!torrent works again... YAY!!
Same functionality and behavior as before. Nothing added, nothing removed, simply corrected. Get it here or on the first page of this thread.
djevrek wrote:I don't know is this a problem with eggdrop or your script, but when i type !wiki .sr serbia or !wiki .sr@sr-el serbia i got bot give me this.
That seems like the eggy is only following encoding for the 1st line of it's reply (I assume the first line of it's replies are perfect). The secondary line is completely missing any encoding (it appears to be using eggdrops standard encoding instead of the regional encoding. This is mangling the text)... ;/
I'm not sure if this is a problem with the 'cutter' portion of this script (which is part of the original script, I did not write this part) that handles splitting long lines into formatted output for irc display. I'll investigate this issue shortly to see where it's coming from. The encode_string functionality should carry over for all lines given by the bot for each trigger. Not just the first line of it's reply, this is not normal behavior and thanks for the heads up about it.. ;)
H
Hellster
Voice
Posts: 22
Joined: Thu Aug 10, 2006 7:35 pm

Post by Hellster »

when using the latest script (also the previous version)

!google 57 kilograms to pounds << or variation thereof
i get this error message in DCC chat and get no results announced

[21:42] Tcl error [incith::google::public_message]: can't read "desc": no such variable

Hopefully only a minor fix ?
Thanx.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Hellster wrote:Hopefully only a minor fix ?
Thanx.
What is your google default country set to? Also, what country is the IP the bot accessing google located in? because see below...
<speechles> !google 57 kilograms to pounds
<sp33chy> 467,000 Results | 57 kilograms = 125.663489 pounds | [PDF] Kilograms to Pounds conversion c @ http://www.metric-conversions.org/conve ... -chart.pdf | Metrical / imperial system converter (cm @ http://www.womenrussia.com/extopfaq10.htm | Weight Conversion Tables, NP Central @ http://www.healthyinfo.com/reference/we ... vert.shtml
<speechles> !google .nl 57 kilograms to pounds
<sp33chy> 467.000 Resultaten | 57 kilograms = 125.663489 pounds | [PDF] Kilograms to Pounds conversion c @ http://www.metric-conversions.org/conve ... -chart.pdf | Metrical / imperial system converter (cm @ http://www.womenrussia.com/extopfaq10.htm | Weight Conversion Tables, NP Central @ http://www.healthyinfo.com/reference/we ... vert.shtml
It works just fine for me, using "com" as default, or switching to any google country. It works for me in the United States, and my friends in the UK and in Italy (of course, using their respective country defaults and servers)...
H
Hellster
Voice
Posts: 22
Joined: Thu Aug 10, 2006 7:35 pm

Post by Hellster »

my bot is in the US also , and it's set to the default the script was made for which i would presume is .com

A friend just tried another conversion of !google 1000 g to oz , and also got no response. *shrugs*

Edit: I switched the script to another US based eggdrop bot and it works fine now , *shrugs*
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Hellster wrote:my bot is in the US also , and it's set to the default the script was made for which i would presume is .com

A friend just tried another conversion of !google 1000 g to oz , and also got no response. *shrugs*
This is because that particular google server ("com") in combination with that particular IP location creates "alien" templating (google uses outdated or foreign templates for that IP range) and the script cannot parse it. By "alien", I mean the html markups are not occuring in a pre-determined pattern in which it can extract info. If you could perhaps contact me on efnet, using the contact details at the bottom of the header of the script I could solve this and add this missing template. There are others who mysteriously have no google functionality and I suspect this is the same reason. It could be solved with your help. I can't solve it alone because I've never seen this problem demonstrated, either by myself or any of my friends using this script. Anyone who can demonstrate this flawed behavior feel free to contact me, and in doing so get to be a guinea pig of sorts helping me get the new template working (since I cannot test it this is where the help is needed).
Hellster wrote:Edit: I switched the script to another US based eggdrop bot and it works fine now , *shrugs*
Yep, that IP range gets a google server which uses templates the script knows about and can parse gracefully. When you see it working correctly it looks beautiful. ;)
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Google recently updated a few templates without letting anyone know (how dare them >:]) but, seriously, I've addressed the issue and now calculations, did_you_mean's, and all the fun stuff you have come to expect will now work as intended with !google requests. Enjoy ;)
Get the new script here (1.9.8l) or the first post of this thread...

-------
Old post that was here before - left for legacy purposes.

Had some time to investigate more into the problems eggdrop has regarding utf-8 and latin1. The problem seems to stem from the fact eggdrop cannot distinguish at all between utf-8/iso8859-1. So forcing certain things to be detected as iso8859-1 and others as utf-8 makes some things (especially latin1 based character sets) that didn't display correctly before, now magically look perfect without strict use of the encode_strings (keep in mind for any display problems most times it can be solved using the encode_strings array). The side effect of this is no longer is http 2.4 sufficient. It now requires the use of the -urlencoding switch which is only included in versions of http 2.5 and up. Anyone using eggdrop 1.6.19 series is fine, as that is the version of http package included. Anyone using 1.6.18 or less can use this (http 2.5) and copy it to your '/eggdrop/lib/tcl*/' folder. There is no need to place it within a seperate folder. For windrop the same rules apply, you must copy the file I mentioned above to your '\windrop\lib\tcl*\' folder if using a version of windrop less than 1.6.19.

This is for the most part to correct the limitations of google translations and it's horrifying ordeal concerning utf-8 queries and latin1 character sets, things now hopefully cross translate better. Wiki(pedia/media) also make use of this to keep urlencoding recognized as utf-8, so the bot treats it as such which is required for wiki(pedia/media). This may cause problems with certain untested languages, if it does let me know, so far in my tests it doesn't cause a single one.

The encode_strings section has been filled in better so languages very difficult to display (such as russian, bulgarian, serbian, ukranian, romanian, herbew, turkish, japanese, korean among others) are for the most part already included, with nothing to configure in order to use them. This should make it easier for people to understand how to use the encode_strings and add more to it.

With that said, Get the new script here or find it on the first page of this thread.

Note: If you encouter any issues with this version, revert back to 1.9.8j (keeping http 2.5 is fine, it will work on the new and old script, its just 2.4 that only works on the old) and please let me know about it.

-------
Old post that was here before - left for legacy purposes.

New version 1.9.8j (YAY!!) - Corrects flawed !youtube behavior (youtube updated it's html templates), also corrects erroneous html cruft appearing in !groups results (all local and usenet groups should now appear without cruft of any sort)..
All functions and behaviors should function correctly 100% if you find anything odd, please note it here in this thread. Thanks ;)

Get the new script Here or the first page of this thread.

-------
Old post that was here before - left for legacy purposes.
New version 1.9.8i, corrects minor problems with !google zipcode lookups and html cruft injected into !video results.

Note: Also included is debug code for the main google procedure. Each time !google is triggered the html the bot receives will be placed into a file called 'igdebug.txt' in your eggdrop root. It is now possible for users to link me to a copy of their igdebug.txt when the script fails to parse anything. Using the html provided in the igdebug.txt I can add the missing template...
User avatar
dotslasher
Halfop
Posts: 62
Joined: Sun Aug 10, 2003 8:10 pm

Post by dotslasher »

I have tried your latest beta version (v 1.98l) and I'm getting errors with all triggers.

Code: Select all

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
*edit*
just tested the "j" version of the script and that one works.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

dotslasher wrote:I have tried your latest beta version (v 1.98l) and I'm getting errors with all triggers.

Code: Select all

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
*edit*
just tested the "j" version of the script and that one works.
I made it over abundantly clear that version beyond "j" REQUIRE http v2.5. http 2.4 is no longer enough.
from my post above wrote:Had some time to investigate more into the problems eggdrop has regarding utf-8 and latin1. The problem seems to stem from the fact eggdrop cannot distinguish at all between utf-8/iso8859-1. So forcing certain things to be detected as iso8859-1 and others as utf-8 makes some things (especially latin1 based character sets) that didn't display correctly before, now magically look perfect without strict use of the encode_strings (keep in mind for any display problems most times it can be solved using the encode_strings array). The side effect of this is no longer is http 2.4 sufficient. It now requires the use of the -urlencoding switch which is only included in versions of http 2.5 and up. Anyone using eggdrop 1.6.19 series is fine, as that is the version of http package included. Anyone using 1.6.18 or less can use this (http 2.5) and copy it to your '/eggdrop/lib/tcl*/' folder. There is no need to place it within a seperate folder. For windrop the same rules apply, you must copy the file I mentioned above to your '\windrop\lib\tcl*\' folder if using a version of windrop less than 1.6.19.
Hopefully you can see the bold above, and update to the current version. "j" is broken, google calculations and other things will not work within it. The encoding mechanism is also broken. This is why -urlencoding is used, to correct these limitations... I can only lead a horse to water, I cannot make him drink.
User avatar
dotslasher
Halfop
Posts: 62
Joined: Sun Aug 10, 2003 8:10 pm

Post by dotslasher »

I had downloaded http v2.5, I just forgot to put it in the proper directory

sorry :D
and no need to be such an ass about it. Like you never got something wrong.
K
Kiru
Voice
Posts: 8
Joined: Wed Feb 27, 2008 8:02 pm

Post by Kiru »

thanks for the update speechles!

and he was quite nice about it imo, considering your inability to read dotslasher
M
MellowB
Voice
Posts: 24
Joined: Wed Jan 23, 2008 6:02 am
Location: Germany
Contact:

Post by MellowB »

Updated to the latest version now. Had some slight problems at first (everything that was unicode before suddenly wasnt) but got it working. But srsly have no clue why it then suddenly was working again. *shrugs*

Either way, somehow the bot still is unable to read unicode from the input I give it. This has been a problem with the older versions for me and still is with the current one. (at least this is a problem with Japanese, Korean and similar "complicated" charsets/languages)
So yeah, searching google or wikipedia with some Japanese word is not possible at all - it just searches with some gibberish.

Also the !trans trigger is not parsed in unicode either.
It usually seems to use the charset that the translated to pair is using, so if I get some translation to Korean for example I have to set my IRC client to Korean to be able to actually read what the bot gives me as output. Could you maybe do some workaround or whatever to get the output to the channel in UTF-8? There must be some way to force the translation page of google to Unicode, right? :S
I kinda hope so... :>

Anyway, so far, thanks for the updates and fixes again. It sure is highly appreciated as always. :]
On the keyboard of life, always keep one finger on the ESC key.
Post Reply