| View previous topic :: View next topic |
| Author |
Message |
Anahel Halfop

Joined: 03 Jul 2009 Posts: 48 Location: Dom!
|
Posted: Sat Aug 13, 2011 12:03 pm Post subject: |
|
|
| PsySc0rpi0n wrote: |
!google .uk sex pistols
The bot returned this:
Socket Error accessing 'http://www.google.uk/search?q=sex%20pistols&safe=off&lr=lang_all&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:
| Quote: | | Socket Error accessing 'http://www.google.com/search?q=test&safe=off&lr=lang_all&ie=utf-8' .. Does it exist? |
|
google search is working fine for me so dunno |
|
| Back to top |
|
 |
Schucz Voice
Joined: 03 Aug 2008 Posts: 2
|
Posted: Mon Aug 15, 2011 12:57 am Post subject: |
|
|
| May I ask which version are you using? |
|
| Back to top |
|
 |
Anahel Halfop

Joined: 03 Jul 2009 Posts: 48 Location: Dom!
|
Posted: Mon Aug 15, 2011 5:32 am Post subject: |
|
|
| Code: | 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  |
|
| Back to top |
|
 |
jeffo Voice
Joined: 02 Mar 2011 Posts: 9
|
Posted: Wed Sep 07, 2011 1:46 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Sep 09, 2011 1:46 pm Post subject: |
|
|
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.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
lee8oi Halfop
Joined: 04 Jun 2011 Posts: 63 Location: Michigan,United States.
|
Posted: Fri Sep 09, 2011 8:57 pm Post subject: Still awsome. |
|
|
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  _________________ https://github.com/lee8oi
https://code.google.com/u/lee8oi/ |
|
| Back to top |
|
 |
NWH Voice
Joined: 03 Jan 2009 Posts: 7
|
Posted: Sat Sep 10, 2011 5:06 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Sep 12, 2011 9:29 pm Post subject: |
|
|
| 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: | # 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. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
tommytom Voice
Joined: 09 Sep 2011 Posts: 16
|
Posted: Tue Sep 13, 2011 4:05 am Post subject: weather fix |
|
|
| Code: | -[ 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. |
|
| Back to top |
|
 |
NWH Voice
Joined: 03 Jan 2009 Posts: 7
|
Posted: Tue Sep 13, 2011 3:01 pm Post subject: |
|
|
| Thanks speechles |
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Wed Sep 14, 2011 1:31 pm Post subject: |
|
|
tommytom: I don't think speechles minds bug fixes for his code since they save him an hour tracking down and fixing them himself  _________________ http://www.trixarian.net/Projects |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Sep 14, 2011 2:45 pm Post subject: |
|
|
| 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  |
| Quote: | <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°) |
| Quote: | <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  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Thu Sep 15, 2011 3:28 pm Post subject: |
|
|
I think something is wrong with one of your scripts @ speechles
| Quote: | [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  _________________ http://www.trixarian.net/Projects |
|
| Back to top |
|
 |
tommytom Voice
Joined: 09 Sep 2011 Posts: 16
|
Posted: Thu Sep 15, 2011 6:20 pm Post subject: |
|
|
| speechles wrote: | | Quote: | <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°) |
| Quote: | <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  |
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):
Opera (for not so broken look):
| Code: | <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. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Sep 20, 2011 2:38 pm Post subject: |
|
|
| Trixar_za wrote: | I think something is wrong with one of your scripts @ speechles
| Quote: | [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  |
| Quote: | > ! [ 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..
| Quote: | <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. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|