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
B
BeBoo
Halfop
Posts: 42
Joined: Wed Sep 26, 2007 1:44 am

Post by BeBoo »

Guess I should've checked my version first... I DID have the latest version but my host had to format her box and backed up my home before she did so and i noticed she must've had an old backup cuz a few files I had changed did not have the changes in them so I guess she backed up before i had version y. In any event, this is what i get now:

Code: Select all

 [BeBoo] !ebay 2005 Ferrari F430
 [optix] http://cgi.ebay.com/_W0QQItemZ270294938379
** EDIT **
Must've been something goofy. It's working now. Sorry to bother. Thanks again, speechles!
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Corrected !video and !group to work properly once again. Added a new one as well, !scholar, which will scrape scholar.google.*. This brings the amount of sites this script is capable of scraping to 28. You can find the new version below, and as always have a fun. ;)

Download: incith-google-v1.98z.tcl

also beefed up !images to convey more information as you can see below. :D
<speechles> !i egghelp
<sp33chy> 678 Results | http://www.egghelp.org/tclhtml/3478- ... (441 x 273 - 27k - gif) @ http://infotekten.de/media/1/20060511-askdumb.gif | ... Page: http://www.egghelp.org (1883 x 333 - 10k - gif) @ http://www.tngshells.com/images/logo.gif | EGGHELP.RU - Eggdrop help project. (150 x 120 - 25k - png) @ http://forum.egghelp.ru/styles/SoftBrow ... gglogo.png | egghelp.org: what is an
<sp33chy> eggdrop? (186 x 285 - 12k - gif) @ http://www.egghelp.org/images/eggman.gif
R
Renegade
Voice
Posts: 10
Joined: Sat May 24, 2008 12:40 am

Post by Renegade »

I'm having a weird problem :?
I've just installed a new eggdrop and upgraded to z during that. Now, the script itself works, I can do !google, !wiki, !translate, etc., but when I try the wikimedia trigger, I get
Wikimedia Error: Sorry, no search results found.
However, when I turn on debut messaging, I can see that the bot actually does find the page I'm looking for!
I have the page I was looking for right there in my message window, I have clicked it, it works fine, so obviously the search worked...and yet, it claims it found no results in the channel.
Any idea what could cause this? Given that it does perform the search fine in the background and does craft the correct link, I'm pretty sure I entered the correct wiki address.

The MediaWiki installed is an older version (1.11), is the script maybe not backwards compatible?

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

Post by speechles »

Renegade wrote:I'm having a weird problem :?
I've just installed a new eggdrop and upgraded to z during that. Now, the script itself works, I can do !google, !wiki, !translate, etc., but when I try the wikimedia trigger, I get
Wikimedia Error: Sorry, no search results found.

Code: Select all

      # if we have no description, then let's decide what to do.
      if {$desc == ""} {
        regexp -- {<p>(.+?)</p>} $html - match
        if {$match != ""} { return "\002Wikimedia Error:\002 Unable to parse for: \002${input}\002 @ ${query}${subtag}" }
        if {$match == ""} { return "\002Wikimedia Error:\002 Sorry, no search results found." }
        break
      }
This is the part of the script which will sense if the two variables it wants are fulfilled or not. $desc is the description title for the entry. $match is the section of the wiki which was scraped for display. In the code above you can see, if it hasn't scraped a description title it will attempt to scrape for paragraphs which indicate a parse problem, if it can't do this either it replies with "no search results found". This usually occurs in pages with deep redirects. The problem is likely the two wiki portions of the script (wikipedia/wikimedia) still use clumsy cascading redirects. This is because they do not use the main fetch_html procedure (which does have full redirect support with cookies) to obtain it's html. This is because these portions were written when I was very new to tcl and did not understand fully the capabilities of eggdrop. In cascading redirects, they can only so many levels deep. In wikimedia's/wikipedia's case, it will only be able to detect 4 levels of redirecting (and it uses the html to detect them, doesn't check for 300/301/302's as fetch_html does). I do plan on correcting this limitation soon (this will also condense those two procedures immensely), but until then you can usually avoid this as done below.
<speechles> !wm .s23.org eggdrop
<sp33chy> Wikimedia Error: No html to parse.
<speechles> !wm .s23.org/wiki eggdrop
<sp33chy> Eggdrop | "..designed for flexibility and ease of use, and is freely distributable under the GNU General Public License (GPL). Eggdrop was originally developed by Robey Pointer; however, he no longer works on Eggdrop so please do not contact him for help solving a problem or bug. @ http://s23.org/wiki/eggdrop
The problem above is clearly caused by lack of /wiki subdomain. This is probably the same cause of the problem you mention. There are a few wiki's this script will not read and those are usually either overly tabled or drastically modified from the original mediawiki templates.

If you give me the query you are giving the bot --> !wm .this.site stuff <-- I need to know what your using for this part. I can easily tailor the script to support your site or explain how it can be done.
Last edited by speechles on Sat Nov 22, 2008 1:26 pm, edited 2 times in total.
s
sutkida
Voice
Posts: 12
Joined: Wed Nov 19, 2008 6:06 am

Post by sutkida »

speechles, just a question: Is there any way in the code that I can just place the specific channel where the results will be displayed? I can't let the script to work by using the ".chanset #channel +google." I have a script installed in my eggdrop which doesn't support with that setting.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

sutkida wrote:speechles, just a question: Is there any way in the code that I can just place the specific channel where the results will be displayed? I can't let the script to work by using the ".chanset #channel +google." I have a script installed in my eggdrop which doesn't support with that setting.
Sure you can, but you must hard code the setting into the bottom of your eggdrop.conf.

Code: Select all

channel set #yourchan +google
On .rehash/.restart it will now be activated.

You can also add that code to the top of the google script. But you must make sure the channel has been added and is a valid channel or doing this will crash your eggdrop. This is why static channel settings are not used, and instead the dynamic ability of .chanset used instead. Static channels added which are not valid will crash the script.
s
sutkida
Voice
Posts: 12
Joined: Wed Nov 19, 2008 6:06 am

Post by sutkida »

It won't work. I got an error. Heard of a&a light script by the way? That's what is installed in my eggdrop. Its eggdrop.conf is different from the eggdrop.conf without a&a light script installed in it.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

sutkida wrote:It won't work. I got an error. Heard of a&a light script by the way? That's what is installed in my eggdrop. Its eggdrop.conf is different from the eggdrop.conf without a&a light script installed in it.
There is little I can do to debug the statement "It won't work. I got an error.". As well I haven't a clue what a&a is. Do they have website? Can you provide more details as to what the error was?
s
sutkida
Voice
Posts: 12
Joined: Wed Nov 19, 2008 6:06 am

Post by sutkida »

Here's their site: http://ascript.name/

Before running the bot, I comment the line:

#source scripts/tclname.tcl

so the bot can run.Coz when it us uncommented,it won't run.Then I'll just edit the eggdrop.conf and remove the "#" next to the line. Rehash the bot and it will successfully be rehashed. But then when I try to use the script in the channel, nothing comes out.I can't see the errors because it won't show in the windrop.Sorry it's windrop not eggdrop.My bad. :(
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

sutkida wrote:Here's their site: http://ascript.name/

Before running the bot, I comment the line:

#source scripts/tclname.tcl

so the bot can run.Coz when it us uncommented,it won't run.Then I'll just edit the eggdrop.conf and remove the "#" next to the line. Rehash the bot and it will successfully be rehashed. But then when I try to use the script in the channel, nothing comes out.I can't see the errors because it won't show in the windrop.Sorry it's windrop not eggdrop.My bad. :(
Since that script abnormalizes eggdrop and drastically changes its behaviors they likely won't work together. The comment, uncomment, rehash working gives the impression there is still an error, but your a&a script is blocking it to prevent the crash. You would need to use a pure windrop/eggdrop to utilize functionality of this script as the version of eggdrop in use on that script is sadly outdated (2005?).
A
ALoGeNo
Voice
Posts: 3
Joined: Wed Aug 15, 2007 5:30 pm

Post by ALoGeNo »

Thanks a lot from spain for your very nice work, well done speechles

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

Post by speechles »

<speechles> !v eggdrop irc
<sp33chy> 4 Results | What is an eggdrop? - An Informal Presen (An eggdrop is "the most advanced, most)(09:34 -Jul 7, 2008 - 5 months ago -(5 Ratings)) @ http://www.youtube.com/watch?v=PRaXJzqFujA | Playing with IRC (=======// ... irc bot how to use mi)(08:58 -Jun 19, 2008 - 5 months ago -(3 Ratings)) @ http://www.youtube.com/watch?v=sq0fC4n31PA | www.mircgonul.com (turkcemirc, mirc, m1rc, irc
<sp33chy> tan)(02:25 -Apr 8, 2008 - 8 months ago -(2 Ratings)) @ http://www.youtube.com/watch?v=UIGVb25Kgik | .:: Basari Hosting Internet Hizmetleri T (irc ircd sohbet chat muhabbet java app)(00:12 -Oct 1, 2007 - 1 year ago -(0 Ratings)) @ http://www.youtube.com/watch?v=u6t-NhH3i68
<speechles> !v .es eggdrip irc
<sp33chy> Quizás quisiste decir: eggdrop irc? La búsqueda eggdrip irc no ha devuelto ningún resultado.
<speechles> !y .es eggdrip irc
<sp33chy> YouTube results | No se ha encontrado ningún vídeo de "eggdrip irc".. Resultados de: eggdrop irc | What is an eggdrop? - An Informal Pres (An eggdrop is "the most advanced, most) (09:34; hace 5 meses; 564 reproducciones) @ http://es.youtube.com/watch?v=PRaXJzqFujA&fmt=18 | Playing with IRC (me messing around with IRC (internet r) (09:34; hace 5 meses; 339 reproducciones) @
<sp33chy> http://es.youtube.com/watch?v=sq0fC4n31PA&fmt=18 | www.mircgonul.com (mircgonul, turkcemirc, mirc, m?rc, ir) (09:34; hace 8 meses; 206 reproducciones) @ http://es.youtube.com/watch?v=UIGVb25Kgik&fmt=18 | .:: Basari Hosting Internet Hizmetleri T (irc ircd sohbet chat muhabbet java app) (09:34; hace 1 año; 321 reproducciones) @ http://es.youtube.com/watch?v=u6t-NhH3i68&fmt=18
<speechles> !y eggdrop irc
<sp33chy> 4 video results | What is an eggdrop? - An Informal Pres (An eggdrop is "the most advanced, most) (09:34; 5 months ago; 564 views) @ http://youtube.com/watch?v=PRaXJzqFujA&fmt=18 | Playing with IRC (me messing around with IRC (internet r) (09:34; 5 months ago; 339 views) @ http://youtube.com/watch?v=sq0fC4n31PA&fmt=18 | www.mircgonul.com (mircgonul, turkcemirc, mirc, m?rc, ir)
<sp33chy> (09:34; 8 months ago; 206 views) @ http://youtube.com/watch?v=UIGVb25Kgik&fmt=18 | .:: Basari Hosting Internet Hizmetleri T (irc ircd sohbet chat muhabbet java app) (09:34; 1 year ago; 321 views) @ http://youtube.com/watch?v=u6t-NhH3i68&fmt=18 | Egg Drop - Make: Video Podcast (his weekend, Bre Pettis shows you a few) (09:34; 1 year ago; 122,437 views) @
<sp33chy> http://youtube.com/watch?v=ADBTHpk0L8g&fmt=18
Google video (!v) and Youtube (!y) had vast website changes therefore vast changes were made to adjust to them. Some other minor things were changed here and there (of note are the extended messages within youtube shown above). Google translations may not display encodings correctly as I've been playing with it to try to figure out a resolution. Until then, consider this beta and have a fun. ;)

Get it here v1.9.9... :lol:
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Well, seems !local isn't returning proper results. Also appears when you !google define:something and that something isn't found, the message saying so is abnormally long with alot of cruft. Also appears that sometimes google did-you-mean isn't picking up. All of these issues have been addressed. The script now functions 100% everything. If you find any issues or behaviors not normal please shout them out here.. ;)

get the new script HERE v1.9.9a. And remember, most important, have a fun and merry christmas everyone.. :lol:

If your drinking today, don't be driving. Dedicate a driver who isn't drinking for your partying.
K
KristianF
Voice
Posts: 3
Joined: Sun Dec 16, 2007 3:20 pm

Post by KristianF »

both version 99a and 98z gives me this error:

Code: Select all

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
in 95 some functions works, but most wont (like !google or !youtube).

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

Post by speechles »

KristianF wrote:both version 99a and 98z gives me this error:

Code: Select all

Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
in 95 some functions works, but most wont (like !google or !youtube).

Any idea whats wrong?

Code: Select all

# tested on:                                                    #
#   eggdrop v1.6.17 GNU/LINUX with Tcl 8.4                      #
#   windrop v1.6.17 CYGWIN_NT with Tcl 8.4 (http.tcl v2.5)      #

Code: Select all

#   .8k: Corrects some urlencoding problems regarding eggdrops  #
#             complete inability to distinguish between utf-8   #
#             and iso8859-1. Now requires http 2.5 which allows #
#             setting the -urlencoding flag.                    #
#        Corrects entire script which now uses the -urlencoding #
#             flag in some way to hopefully force eggdrop to    #
#             understand the differences and force proper       #
#             detections.                                       #
#         * requirements upped, now requries http 2.5 *         #
If you read down the development entries for each version, the above can be seen. Simply replace the http.tcl in your /eggdrop/lib/tcl8.*/ folder with a copy of http v2.5 or higher. If you read back in this thread others have had this problem and a link to http 2.5 was given.
Post Reply