| View previous topic :: View next topic |
| Author |
Message |
BeBoo Halfop
Joined: 26 Sep 2007 Posts: 42
|
Posted: Thu Oct 30, 2008 10:38 pm Post subject: |
|
|
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: | [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! |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Nov 16, 2008 12:26 am Post subject: |
|
|
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.
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
Renegade Voice
Joined: 24 May 2008 Posts: 10
|
Posted: Sat Nov 22, 2008 5:03 am Post subject: |
|
|
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
| Quote: | | 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. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Nov 22, 2008 1:16 pm Post subject: |
|
|
| 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
| Quote: | | Wikimedia Error: Sorry, no search results found. |
|
| Code: | # 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.
| Quote: | <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. _________________ speechles' eggdrop tcl archive
Last edited by speechles on Sat Nov 22, 2008 1:26 pm; edited 2 times in total |
|
| Back to top |
|
 |
sutkida Voice
Joined: 19 Nov 2008 Posts: 12
|
Posted: Sat Nov 22, 2008 1:24 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Nov 22, 2008 1:29 pm Post subject: |
|
|
| 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: | | 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. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
sutkida Voice
Joined: 19 Nov 2008 Posts: 12
|
Posted: Sat Nov 22, 2008 1:42 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Nov 22, 2008 1:49 pm Post subject: |
|
|
| 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? _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
sutkida Voice
Joined: 19 Nov 2008 Posts: 12
|
Posted: Sat Nov 22, 2008 1:57 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Nov 22, 2008 2:16 pm Post subject: |
|
|
| 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?). _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
ALoGeNo Voice
Joined: 15 Aug 2007 Posts: 3
|
Posted: Tue Nov 25, 2008 8:03 pm Post subject: |
|
|
Thanks a lot from spain for your very nice work, well done speechles
regards |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Dec 05, 2008 9:07 pm Post subject: |
|
|
| Quote: | <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...  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Dec 25, 2008 11:57 am Post subject: |
|
|
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..
If your drinking today, don't be driving. Dedicate a driver who isn't drinking for your partying. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
KristianF Voice
Joined: 16 Dec 2007 Posts: 3
|
Posted: Sun Jan 04, 2009 9:08 am Post subject: |
|
|
both version 99a and 98z gives me this error:
| Code: | | 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? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jan 04, 2009 12:03 pm Post subject: |
|
|
| KristianF wrote: | both version 99a and 98z gives me this error:
| Code: | | 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: | # 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: | # .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. _________________ 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
|
|