egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UNOFFICIAL incith-google 2.1x (Nov30,2o12)
Goto page Previous  1, 2, 3 ... 37, 38, 39 ... 56, 57, 58  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
cg
Voice


Joined: 30 Jun 2009
Posts: 8

PostPosted: Sun Jan 17, 2010 6:59 pm    Post subject: Reply with quote

Thanks Speechles, removing gzip and rehash fixed this for me also. Smile
Your time is appreciated.
Back to top
View user's profile Send private message
pogue
Voice


Joined: 17 May 2009
Posts: 28

PostPosted: Sun Jan 17, 2010 8:31 pm    Post subject: Reply with quote

pogue wrote:
Finally, there is a minor error when doing a currency conversion and no debug result was returned.

Code:
[11:15pm] <~pogue> !g .093985 USD to CAD
[11:15pm] <+BodyBuildingBot> Socket Error accessing 'http://www.google.093985/search?q=USD%20to%20CAD&safe=on&lr=lang_all&num=3&ie=utf-8' .. Does it exist?


As you can see, it appends the query with a period in it into the google URL and attempts to use that as the domain to search from. If someone does a search with 0.XYZ instead of .XYZ it works fine though.

speechles wrote:
This is actually a feature of the script. As google adds new regional servers, the script automatically supports them. The _next_ version will also support google's special searches found here. A small example quoted below.

Quote:
<speechles> !g .com/linux eggdrop
<sp33chy>Google | eggdrop | freshmeat.net @ http://freshmeat.net/projects/eggdrop/ | mIRCStats Eggdrop Logger @ http://mel.sourceforge.net/ | Eggdrop | Get Eggdrop at SourceForge @ http://sourceforge.net/projects/eggdrop/
<speechles> !g .com/microsoft windows
<sp33chy>Google | Microsoft Windows: Windows 7, Windo @ http://www.microsoft.com/WINDOWS/ | Microsoft Windows - Wikipedia, the fre @ http://en.wikipedia.org/wiki/Microsoft_Windows | Windows home - Microsoft Windows @ http://windows.microsoft.com/
<speechles> !g .nl/microsoft windows
<sp33chy> Google | Microsoft Nederland @ http://www.microsoft.com/netherlands/ | Microsoft Windows - Wikipedia @ http://nl.wikipedia.org/wiki/Microsoft_Windows | Startpagina Windows 7 - Microsoft Windows @ http://windows.microsoft.com/nl-nl/windows7/products/home?os=win7
<speechles> !g .com/univ/mit rainbows
<sp33chy>Google | Polarization: Light Waves, Rainbows, a @ http://mitworld.mit.edu/video/74 | Scratch | Project | Rainbows!!! @ http://scratch.mit.edu/projects/hippiegirl/834715 | CD REVIEW 'In Rainbows' a Lofty, Beaut @ http://tech.mit.edu/V127/N45/radiohead.html


I did not realize that feature was even there, and I'm still a little confused about how to use this. Is this similar to the google site search "site:" query? Although returned from your example bot above are showing them from Wikipedia too.

I expect O'Reilly might ask you to write a book on this script in the near future so we can make use of all the functionality in it. Incith's Google for Eggdrops by speechles with a picture of a lithographed rabbit on the cover or something. Razz

speechles wrote:
Expect the new version either today (with "spell:" left as an English only token for the moment) or tomorrow (with some clever symbol or something used to replace the English "spell:").


Thanks for this. I think "spell:" works fine and it's what I'm used too. I appreciate all the help and input,
pogue
_________________
Helpful Tools:

  • Notepad++: Windows Text Editor with TCL Syntax Highlighting
  • Pastebin TCL: For easy script collaboration
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Jan 17, 2010 8:54 pm    Post subject: Reply with quote

pogue wrote:
I did not realize that feature was even there, and I'm still a little confused about how to use this. Is this similar to the google site search "site:" query? Although returned from your example bot above are showing them from Wikipedia too.

Not at all, the "site:" modifier is merely a search token, same as "inurl:", "ext:", etc... These merely modify your search results to fit the tokens given.

The reason you can do this is so you can localize searches to a specific domain.

http://www.google.de/linux

Clicking the above url will localize your results to germany and localize them even further to those about linux. The easiest way to make this as simple for users as possible is to keep these in line with the way the script already handles localizing.

!g .de something - localizes to germany searching for something
!g .de/linux something - localizes to germany as well as localizing to linux and searching for something

As you can see this makes it intuitive for your users, and quite easy to incorporate into custom-trigger-phrases so that you can craft your own triggers to extend this functionality to users without encumbering them with so much to type. Every server which google localizes results to can be accessed using this script. Hope you understand.. Wink

pogue wrote:
I expect O'Reilly might ask you to write a book on this script in the near future so we can make use of all the functionality in it. Incith's Google for Eggdrops by speechles with a picture of a lithographed rabbit on the cover or something. Razz

I planned on formalizing some type of documentation to go along with this script as well as seperating the config from the script so users don't need to reconfigure the entire script every update. But these plans fall by the wayside as fixing bugs and implementing more features (read this as bells and whistles) is more motivating to accomplish.

pogue wrote:
Thanks for this. I think "spell:" works fine and it's what I'm used too. I appreciate all the help and input,
pogue

The purpose of the script is merely to be useful. I'm glad you like it. I like it too. Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
jaztys
Voice


Joined: 21 Jan 2010
Posts: 3

PostPosted: Thu Jan 21, 2010 7:15 am    Post subject: Reply with quote

Quote:

<jaztys> !youtube funny
<jaztys> !youtube .com funny
<jaztys> !youtube .en funny
<jazzty> Socket Error accessing 'http://co.in.youtube.com/results?search_query=funny&hl=co.in&ie=utf-8' .. Does it exist?


am i missing something? wht to do?

Quote:

<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements
<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements

bot replys this error in telnet. please help im a new user and know nothing much about it, will be waiting for replay.. thanks
Back to top
View user's profile Send private message
shadrach
Halfop


Joined: 14 Dec 2007
Posts: 74

PostPosted: Sat Jan 23, 2010 7:52 am    Post subject: Reply with quote

Any chance of replacing the mininova search with a different index since the range of desirable torrents has dwindled at mn since it's change in policy. I know there is a custom search via google but it doesn't have the detailed info that the dedicated mn search returned. Wink
Back to top
View user's profile Send private message MSN Messenger
luminoso
Voice


Joined: 02 Jul 2007
Posts: 7

PostPosted: Tue Feb 02, 2010 5:58 pm    Post subject: Reply with quote

jaztys wrote:


Quote:

<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements
<jazzty> [04:58] Tcl error [incith::google::public_message]: list must have an even number of elements

bot replys this error in telnet. please help im a new user and know nothing much about it, will be waiting for replay.. thanks


remove trf package from your system. it's related
Back to top
View user's profile Send private message
shadrach
Halfop


Joined: 14 Dec 2007
Posts: 74

PostPosted: Wed Feb 03, 2010 5:19 pm    Post subject: Reply with quote

news isn't working (


Code:
[20:30:31] [@xvxvx !news test
[20:30:34] [@vxvxv] 173,357 Results
[20:30:35] [@vxvxv] </a> <a target="_blank" class="usg-AFQjCNELWSMEyxBFpNg_2E-CC3A7FLGnrw " href=" (Seattle Times - 57 minutes ago) @ javascript:void(0);
Back to top
View user's profile Send private message MSN Messenger
jaztys
Voice


Joined: 21 Jan 2010
Posts: 3

PostPosted: Fri Feb 26, 2010 1:19 am    Post subject: Reply with quote

Quote:
[23:11] Incith:Google unable to find zlib or trf package! Gzip disabled.
[23:11] Incith:Google requires gzip decompression with wikipedia and Wikimedia. As a result, every article will not work for you.



what will be the problem here?
Back to top
View user's profile Send private message
x-y-no
Voice


Joined: 09 Aug 2009
Posts: 7
Location: Fort Lauderdale, FL

PostPosted: Fri Feb 26, 2010 2:57 pm    Post subject: Reply with quote

jaztys wrote:
Quote:
[23:11] Incith:Google unable to find zlib or trf package! Gzip disabled.
[23:11] Incith:Google requires gzip decompression with wikipedia and Wikimedia. As a result, every article will not work for you.



what will be the problem here?


I've yet to see a page it fails on, but if you want to make this message go away the rpm you need to install is "tcl-trf" and maybe also "tcl-trf-devel"

EDIT: Although looking at some of the posts just above, maybe this isn't a good idea. Appears it may cause other problems. I'd say leave it alone unless you're actually seeing failures on your wiki searches.
Back to top
View user's profile Send private message
pogue
Voice


Joined: 17 May 2009
Posts: 28

PostPosted: Fri Feb 26, 2010 4:22 pm    Post subject: Reply with quote

jaztys wrote:
Quote:
[23:11] Incith:Google unable to find zlib or trf package! Gzip disabled.
[23:11] Incith:Google requires gzip decompression with wikipedia and Wikimedia. As a result, every article will not work for you.



what will be the problem here?


Are you getting that error when you launch your egg? Or when the bot is performing a search?

On line 1122 of the script set use_gzip to 0 and see if that doesn't help.

Code:
    # enable gzip compression for bandwidth savings? Keep in mind
    # this semi-breaks some of the present utf-8 work-arounds and
    # eggdrop may mangle encodings when gzip compression that it
    # doesn't when uncompressed html it used (default). A setting
    # of 0 defaults to uncompressed html, a 1 or higher gzip.
    # ------
    # NOTE: If you do not have Trf or zlib packages setting this
    # to 0 is recommened. Leaving it at 1 is fine as well, as the
    # script will attempt to find these commands or packages every
    # rehash or restart. But to keep gzip from ever being used it
    # is best to set the below variable to 0.
    # NOTE2: If you have Trf or zlib packages present, then this
    # should always be set to 1. You save enormous bandwidth and
    # time using this. If your bot is patched and you have Trf/zlib
    # then you should definitely leave this at 1 and you will never
    # suffer issues.
    # ------
    variable use_gzip 0

_________________
Helpful Tools:

  • Notepad++: Windows Text Editor with TCL Syntax Highlighting
  • Pastebin TCL: For easy script collaboration
Back to top
View user's profile Send private message Visit poster's website
[SkG]
Voice


Joined: 25 Oct 2009
Posts: 2

PostPosted: Sun Feb 28, 2010 8:16 am    Post subject: Reply with quote

Hi! I'm getting the same problem as jaztys.
I get an error msg when I perform a search in youtube, other search like youtube or wikipedia are working:

Code:
Tcl error [incith::google::public_message]: list must have an even number of elements


I have not tcl-trf installed (I uninstalled it) and I put use_gzip to 0. If I put use_gzip with and without trf (with zlib installed) google search dont work.

Code:
Tcl error [incith::google::public_message]: can't read "state(body)": no such variable


Then my situation is the following:
-Using 1.9.9x
- Dont have tcl-trf
- use_gzip 0
- Google, wikipedia, ... workin
- Youtube throws "list number of elements" error

Any hint to solve this?

Code:

Debian squeeze
Linux 2.6.30-2-amd64/x86_64
Eggdrop v1.6.19 + UTF-8 + SSL
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Feb 28, 2010 12:27 pm    Post subject: Reply with quote

So many things broke... !news, !game, and !review all seem to have just gone away. Well, I'm here to fix all that. They now work as well as they did before.

Get it here: Incith:Google v1.9.9y

Enjoy, and most important, have a fun Razz
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sat Mar 20, 2010 1:32 pm    Post subject: Reply with quote

With this latest version I get party line errors

Code:
Tcl error [incith::google::public_message]: can't read "incith::google::local_binds": no such variable
Back to top
View user's profile Send private message
ipbegg
Voice


Joined: 14 Jun 2009
Posts: 11

PostPosted: Sat Mar 20, 2010 7:59 pm    Post subject: Reply with quote

[00:59] Tcl error [incith::google::public_message]: couldn't open "ig-debug.txt": permission denied

whats that? Confused
Back to top
View user's profile Send private message
Ewinz87
Voice


Joined: 25 Mar 2010
Posts: 1

PostPosted: Thu Mar 25, 2010 2:42 am    Post subject: Reply with quote

Many triggers aren't working for me. Using latest v1.99y but was also having same problem with x version.

Here's the error I get for !ebayfight:

Code:
Tcl error [incith::google::public_message]: missing operand at _@_
in expression "_@_<div>118801 < <div>112..."


Translate, Wikipedia, Wikimedia:

Code:
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent


Ebay, Scholar doesn't work and get no error.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 37, 38, 39 ... 56, 57, 58  Next
Page 38 of 58

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber