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
User avatar
Anahel
Halfop
Posts: 48
Joined: Fri Jul 03, 2009 6:18 pm
Location: Dom!

Post by Anahel »

PsySc0rpi0n wrote: !google .uk sex pistols

The bot returned this:

Socket Error accessing 'http://www.google.uk/search?q=sex%20pis ... l&ie=utf-8' .. Does it exist?
thats because google.uk doesn't exist, tho there is google.co.uk so you need to use "!g .co.uk text"
Schucz wrote: Apparently I'm also experiencing the same issue:
Socket Error accessing 'http://www.google.com/search?q=test&saf ... l&ie=utf-8' .. Does it exist?
:roll:
google search is working fine for me so dunno
S
Schucz
Voice
Posts: 2
Joined: Sun Aug 03, 2008 2:35 am

Post by Schucz »

May I ask which version are you using?
User avatar
Anahel
Halfop
Posts: 48
Joined: Fri Jul 03, 2009 6:18 pm
Location: Dom!

Post by Anahel »

Code: Select all

23:07:56 <nekomimi> [23:07:56]  - UNOFFICIAL incith:google-2.0.0a loaded.
but i think my version is newer than 2.0.0b in this topic :P
j
jeffo
Voice
Posts: 9
Joined: Wed Mar 02, 2011 9:17 pm

Post by jeffo »

it recently stopped working over here.. all i get is a time-out :/

or

Tcl error [incith::google::public_message]: can't read "link": no such variable
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

New version here: Incith:Google v2.0.0.c

++ Fixed wikipedia/mediawiki to full browser compliance now follows #anchors and redirectToFragment's perfectly ;)
++ Fixed !game and !review
-- !youtube still faking it...
uses custom trigger phrasing to pull a google search result, isn't really using youtube itself to acheive this..
-- !ign is still broken.. :(
-- most google one-boxes still broken.. :(
-- !local still broken.. :(
-- !blog broken
-- !dailymotion broken
-- !myspace broken

Those -- issues will be corrected in the next update. Yes, all of them.. every single one. These issues merely require template scraper fixes, and wallah magically they work again. Expect an update to occur sometime next week (or so). *crosses fingers*

Until then, have fun, dance like an robot, and party like a rock star. :)
l
lee8oi
Halfop
Posts: 63
Joined: Sat Jun 04, 2011 2:05 pm
Location: Michigan,United States.
Contact:

Still awsome.

Post by lee8oi »

Hey even with the few things still broken this is still the best search script available for eggdrop. Currently testing the lastest version for ya. Looking forward to the next update :)
N
NWH
Voice
Posts: 7
Joined: Sat Jan 03, 2009 1:14 pm

Post by NWH »

Hi .

I just dl this one to replace the old google one.
But i have some questions :

1- how to have 1 answer by line ??
actually it's one sentences :(
oki this one is fixed by adding correct separator

2- how to use separate colors ??
one for the link, one for the description , one for the key word ?

3- Wiki use give me this error :
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent

oki this one is fixed by removing url encoding
but is it possible to just have the " url " with one command and summary with another command ??

Thanks

i have 2.0.c

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 »

NWH wrote:Hi .

I just dl this one to replace the old google one.
But i have some questions :

1- how to have 1 answer by line ??
actually it's one sentences :(
oki this one is fixed by adding correct separator
Exactly, variable seperator "\n"
NWH wrote:2- how to use separate colors ??
one for the link, one for the description , one for the key word ?
To add a "color theme" to the script is very simple:

Code: Select all

    # use *_modes to enable each color, bold, underline.
    # use *_demodes to undo this back to plain text.
    # if you do not use the proper modes/demodes here your color theme will look
    # horrible... 
    # ------
    # description mode/demode
    variable desc_modes "\00309"
    variable desc_demodes "\00399"
    # link mode/demode
    variable link_modes "\00307"
    variable link_demodes "\00399"
    # totals mode/demode
    variable total_modes "\003011"
    variable total_demodes "\00399"
    # error mode/demode
    variable error_modes "\00304"
    variable error_demodes "\00399"

    # break, seperator and split_char need more than modes
    # you also enter the appropriate character you wish used.
    variable break " \00308@\00399 "
    variable seperator "\n"
    # if using "\n" within the seperator above, you may want to change
    # the below setting to possibly to ", " or "; "
    variable split_char "\00314;\00399 "
Try the theme above, it looks best using a black background.

Descriptions are green. Links are orange. Totals are cyan. Errors are red. Seperator is a @ sign. Since newline is used as a seperator, then split_char has been changed to a semi-colon. This should give you an idea of how these themes work.
NWH wrote:3- Wiki use give me this error :
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent

oki this one is fixed by removing url encoding
but is it possible to just have the " url " with one command and summary with another command ??
Yeah, using http package version 2.5.3 or later, includes the -urlencoding switch which allows for correct utf-8. There is presently no way to have just the url on one !command and the summary on !another.
t
tommytom
Voice
Posts: 16
Joined: Fri Sep 09, 2011 8:28 am

weather fix

Post by tommytom »

Code: Select all

-[ 02:54.25 ]- -( ~TommyTom ): !g weather florence
-[ 02:54.27 ]- -( TTBot ): Weather for Florence, Italy: 72°F, Clear, Wind: N at 1 mph; Humidity: 69%; 91°/68° 90°/64° 88°/61° 88°/59°
original 2.0.0c source: http://pastebin.com/Taf8CN74
weather fix by myself: http://pastebin.com/nReKnSkT
diff: http://pastebin.com/diff.php?i=nReKnSkT

I left my F to C code (commented out) in there in case anyone wants to make use of it (would require 8 straight conversions or a loop, but couldn't be arsed).

Also, I adapted the f1-f9 the best I could. I dunno what it was SUPPOSED to look like, but pretty sure it's totally different from what it used to be (3x3 instead of 2x4?).

My other fixes (to 1.8.8g) can be found here: http://forum.egghelp.org/viewtopic.php?t=18630
They should work, but they need to be adapted if the code changed drastically (like the weather did).

I'm new to this script (the unofficial one, anyways), so I will have to take some time getting used to the new stuff (already missing my !w for weather, but wikipedia trumps it, so meh) and to find out what is broken still (mine was mostly fixed); If anyone has a list (beyond the above post), I will see if I can adapt my fixes or make new ones. Otherwise, I will wait until the next update to see where I can help out.

Edit:
Oh, and I took out the cleanup stuff (underscores and space?). I didn't see a reason for it, so I assumed it was deprecated or something.

And sorry if it seems I'm trying to rewrite your script or something in your topic, but I'm just trying to help and share knowledge. By no means am I increasing your version numbering or even expecting you to take my code into it. Just sharing and hopefully saving you some hassle if you choose to use it or take bits of it. You are welcome to "steal" whatever parts I put in.
N
NWH
Voice
Posts: 7
Joined: Sat Jan 03, 2009 1:14 pm

Post by NWH »

Thanks speechles
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

tommytom: I don't think speechles minds bug fixes for his code since they save him an hour tracking down and fixing them himself ;)
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Trixar_za wrote:tommytom: I don't think speechles minds bug fixes for his code since they save him an hour tracking down and fixing them himself ;)
<speechles> !g .nl weer:amsterdam
<sp33chy> Weer voor Amsterdam: 15 °C, Plaatselijk bewolkt, Wind: ZW - 19 km/h; Luchtvochtigheid: 77%; wo: Kans op regen (17°/13°); do: Kans op regen (17°/8°); vr: Overwegend zonnig (19°/13°)

<speechles> !g .de wetter:ukiah, ca
<sp33chy> Wetter für Ukiah, Kalifornien, USA: 26 °C, Teils bewölkt, Wind: NW mit 2 km/h; Feuchtigkeit: 47%; Mi.: Teils bewölkt (32°/11°); Do.: Teils bewölkt (29°/9°); Fr.: Teils bewölkt (29°/8°)

<speechles> !g .es tiempo:ukiah, ca
<sp33chy> El tiempo en Ukiah, California, EEUU: 26 °C, Parcialmente nublado, Viento: NO a 2 km/h; Humedad: 47%; mié: Parcialmente nublado (32°/11°); jue: Parcialmente nublado (29°/9°); vie: Parcialmente nublado (29°/8°)
<TommyTom> !g weather florence
<TTBot> Weather for Florence, Italy: 72°F, Clear, Wind: N at 1 mph; Humidity: 69%; 91°/68° 90°/64° 88°/61° 88°/59°
See the difference? His is close, but it isn't parsing all the information. I haven't checked if his works for every regional server using .switches either. His may or may not support "multi language". The most important feature of the script to me is the fact it doesn't care what language you use. Knowing that, you can easily guess that I don't mind help if the help "respects" the multi-language features present in the script. Otherwise, it's of no use to me to use that code. It doesn't evolve this script any more forward. It actually harms it and sends it backwards.

I've had a little time to work on some things, and as you see, I've already fixed weather correctly (almost, minor annoyances on some regional domains that need correcting). Just waiting to fix more things before making a "public" release. Hoping to have the entire script once again functional shortly. Those who wish to participate in this evolution, join the network and irc channel found below, help direct the future..

If you want to "help" the easiest way is idle in #roms-isos on efnet. --> irc://irc.efnet.org/roms-isos
This is the channel I "beta test" all new scripts in, and where you can get pre-release copies of those "beta" versions, and where collaborations can occur more easily :D
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

I think something is wrong with one of your scripts @ speechles :P
[21:26:12] »» sp33chy sets ban on *!*@*.telkomadsl.co.za
[21:26:13] »» You have been kicked from #roms-isos by sp33chy (Banned: did you report me to efnet yet you n*****?)
[21:26:14] »» Cannot join #roms-isos (You are banned).
Or maybe just a way too broad ban :/ Funny enough, that happens a lot to me on efnet :|
t
tommytom
Voice
Posts: 16
Joined: Fri Sep 09, 2011 8:28 am

Post by tommytom »

speechles wrote:
<speechles> !g .nl weer:amsterdam
<sp33chy> Weer voor Amsterdam: 15 °C, Plaatselijk bewolkt, Wind: ZW - 19 km/h; Luchtvochtigheid: 77%; wo: Kans op regen (17°/13°); do: Kans op regen (17°/8°); vr: Overwegend zonnig (19°/13°)

<speechles> !g .de wetter:ukiah, ca
<sp33chy> Wetter für Ukiah, Kalifornien, USA: 26 °C, Teils bewölkt, Wind: NW mit 2 km/h; Feuchtigkeit: 47%; Mi.: Teils bewölkt (32°/11°); Do.: Teils bewölkt (29°/9°); Fr.: Teils bewölkt (29°/8°)

<speechles> !g .es tiempo:ukiah, ca
<sp33chy> El tiempo en Ukiah, California, EEUU: 26 °C, Parcialmente nublado, Viento: NO a 2 km/h; Humedad: 47%; mié: Parcialmente nublado (32°/11°); jue: Parcialmente nublado (29°/9°); vie: Parcialmente nublado (29°/8°)
<TommyTom> !g weather florence
<TTBot> Weather for Florence, Italy: 72°F, Clear, Wind: N at 1 mph; Humidity: 69%; 91°/68° 90°/64° 88°/61° 88°/59°
...
If you want to "help" the easiest way is idle in #roms-isos on efnet. --> irc://irc.efnet.org/roms-isos
This is the channel I "beta test" all new scripts in, and where you can get pre-release copies of those "beta" versions, and where collaborations can occur more easily :D
I'm in there and will check it out.
I'm still trying to understand what it is you are seeing because I get something completely different.

Fiddler2 (note the user-agent and search string):
Image

Opera (for not so broken look):
Image

Code: Select all

<img width=35 height=35 src="//ssl.gstatic.com/onebox/weather/35/sun.png" title="Sunny" alt="Sunny" border=0 style="margin-right:3px;ver
1000
tical-align:top;margin:0 12px"><tr><td style="white-space:nowrap;padding-right:15px;color:#666">Sunny<td><td><td><tr><td style="white-space:nowrap;padding-right:15px;color:#666">Wind: NW at 13 mph<td><td><td><tr><td style="white-space:nowrap;padding-right:15px;vertical-align:top;color:#666">Humidity: 39%<td style="text-align:right;white-space:nowrap;padding-left:5px;padding-right:2px;vertical-align:top">84°<td style="text-align:left;white-space:nowrap;padding-left:2px;padding-right:5px;vertical-align:top;color:#666">50°<td style="text-align:right;white-space:nowrap;padding-left:5px;padding-right:2px;vertical-align:top">85°<td style="text-align:left;white-space:nowrap;padding-left:2px;padding-right:5px;vertical-align:top;color:#666">48°<td style="text-align:right;white-space:nowrap;padding-left:5px;padding-right:2px;vertical-align:top">89°<td style="text-align:left;white-space:nowrap;padding-left:2px;padding-right:5px;vertical-align:top;color:#666">50°<td style="text-align:right;white-space:nowrap;padding-left:5px;padding-right:2px;vertical-align:top">91°<td style="text-align:left;white-space:nowrap;padding-left:2px;padding-right:5px;vertical-align:top;color:#666">53°</table>
The mozilla source has less info than Opera (I don't see the day of the week) and that is all I could go by (and I don't use FireFox myself, but the referrer and text source above should be the equivalent).

Actually, now that I look, Fiddler2 shows the days, but it's not in that section of the source. CSS? JS? Seems to be added afterwards.

It might be a language issue.
Can you output a "normal" query? Like google.com default language (English)?

Edit:
Hmm.. It seems you are grabbing the "status" for each day (Sunny, etc), but you can see there is no image or even text (extra) in that source where the temperature numbers are at.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Trixar_za wrote:I think something is wrong with one of your scripts @ speechles :P
[21:26:12] »» sp33chy sets ban on *!*@*.telkomadsl.co.za
[21:26:13] »» You have been kicked from #roms-isos by sp33chy (Banned: did you report me to efnet yet you n*****?)
[21:26:14] »» Cannot join #roms-isos (You are banned).
Or maybe just a way too broad ban :/ Funny enough, that happens a lot to me on efnet :|
> ! [ 77] *!*@*.telkomadsl.co.za (perm)
> c******r: did you report me to efnet yet you n*****?
> Created 71 days ago, last used 4 days ago
I fixed that ban.. haw.. Most hate south africa for some reason. But he did that to stop a spammer originally. The last use 4 days ago must've been you. Feel safe to join again and idle..
<speechles> .-ban *!*@*.telkomadsl.co.za
> Removed #roms-isos channel ban: *!*@*.telkomadsl.co.za
#roms-isos @ efnet ... wallah... You can see a live work in progress of this script if you ever cared to. Plus, as a special bonus, you can throw suggestions, hate, f-you's, thanks, etc, at me directly and have me tell you to "go to hell" in person. :) .. or even add your suggestions to the script, is what I meant.. ;) It's possible you can contribute, without knowing any tcl at all.. that's sorta what I mean.
Post Reply