| View previous topic :: View next topic |
| Author |
Message |
rix Halfop
Joined: 21 Sep 2005 Posts: 42 Location: Estonia
|
Posted: Tue May 22, 2007 4:03 pm Post subject: |
|
|
| With speechles version, search gives only 1 result even though 3 is defined. Also, !wiki doesn't seem to work. |
|
| Back to top |
|
 |
Owdy Voice
Joined: 22 May 2007 Posts: 1
|
Posted: Tue May 22, 2007 4:59 pm Post subject: |
|
|
Great script. Thank you for sharing!  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue May 22, 2007 5:10 pm Post subject: |
|
|
| rix wrote: | | With speechles version, search gives only 1 result even though 3 is defined. Also, !wiki doesn't seem to work. |
that is odd indeed, because i am using the exact same script on my bot without issue. | Code: | | Hey speechles! My name is sp33chy and I am running eggdrop v1.6.17, on CYGWIN_NT-5.1 1.5.18(0.132/4/2). |
If you can shed some light as to what platform your bot is running on, tcl version, eggdrop version, results from .set errorinfo, etc.. maybe I can be more helpful, my bot uses tcl8.4 if you wondered.
I have noticed today problems with !local stemming from same igoogle header that is causing problems with normal google searches. The first result is about 10 lines of javascripted rubbish. I will update the link to the unofficial 1.9.4 with a fix for this later on today. |
|
| Back to top |
|
 |
rix Halfop
Joined: 21 Sep 2005 Posts: 42 Location: Estonia
|
Posted: Tue May 22, 2007 6:24 pm Post subject: |
|
|
Surely:
Eggdrop v1.6.18
Linux debian 2.4.27-386
TCL 8.4
| Quote: |
[23:02:57] <rix> !wiki estonia
[23:03:07] <Leelo> Estonia
[23:01:04] <rix> !g torufoorum
[23:01:05] <Leelo> torufoorum hot ee @ http://torufoorum.hot.ee/.ee
|
The problem of showing 1 result instead of 3 can be in the separator. Atm i have set it " \n ". Might the spaces cause anything? I remember i used "\n" in older version. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue May 22, 2007 8:28 pm Post subject: |
|
|
Reset the seperator:
| Code: | | variable seperator " | " |
.. a more detailed result will appear.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
rix Halfop
Joined: 21 Sep 2005 Posts: 42 Location: Estonia
|
Posted: Sat May 26, 2007 7:17 am Post subject: |
|
|
| I just set the separator to "\n". Tho it's odd that " \n " doesn't work anymore. It used to work before. :/ |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat May 26, 2007 10:33 am Post subject: |
|
|
| rix wrote: | | I just set the separator to "\n". Tho it's odd that " \n " doesn't work anymore. It used to work before. :/ |
I did the same at first when I finally updated and quickly reset it.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Tue May 29, 2007 12:37 am Post subject: |
|
|
Hi all
I just installed the last version 1.8.7a. !google and !images are working. But !video and !print always give NO result. Am i the only 1 with this problem ?
<The_Zircon> !video sport
<Anti-Flood> Sorry, no search results were found.
<The_Zircon> !print wcdma
<Anti-Flood> Sorry, no search results were found.
Althought video.google.com and books.google.com give results. Is it a bug ? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue May 29, 2007 4:16 pm Post subject: |
|
|
@ Zircon: | Quote: | <speechles> !video girl
<sp33chy> 536,086 videos | Destiny's Child - Girl (Destiny's Ch @ http://video.google.com/videoplay?docid=4261305673717711110 | The Little Girl Giant (... of Sund @ http://video.google.com/videoplay?docid=-6334897989714790105 | Laughing Girl (... this is my frie @ http://video.google.com/videoplay?docid=2534186186333175183 | New Edition - Candy Girl (... ne v @
<sp33chy> http://video.google.com/videoplay?docid=1294202200143851289
<speechles> !book marijuana
<sp33chy> 10260 books | Marijuana: The Second Trip - Page 1 (Edward Robert Bloomquist - 1971 - 434 pages) @ http://books.google.com?id=vkoZAAAAIAAJ | Marijuana: Its Effects on Mind and Body (William J. Hermes, Anne Galperin - 1992) @ http://books.google.com?id=uwgbAAAACAAJ | Red-Dirt Marijuana and Other Tastes - Page 1 (Terry Southern - 1990) @ http://books.google.com?id=QSnxwgJSHXwC
<speechles> !local mcdonalds near omaha, nebraska
<sp33chy> 242 results | McDonald's Restaurant @ 2410 Cuming St, Omaha, NE 68131 - (402) 342-1226 | McDonald's Corporation: Restaurants @ 4404 N 30th St, Omaha, NE 68111 - (402) 451-3460 | McDonald's @ 122 S 40th St, Omaha, NE 68131 - (402) 558-3300 | McDonald's Corporation: Restaurants @ 2760 S 13th Ct, Omaha, NE 68108 - (402) 341-0411
<speechles> !blog brtiney
<sp33chy> 198 results | Sign this letter to support Brtiney! @ http://digg.com/celebrity/Sign_this_letter_to_support_Brtiney | Brtiney at Promises Rehab in Malibu @ http://bricksandstones.blogspot.com/2007/02/brtiney-at-promises-rehab-in-malibu.html | Brtiney Spears Suicide Story, Real Or @ http://timworstall.typepad.com/419_er_watch/2007/03/brtiney_spears_.html
<speechles> !news rosie
<sp33chy> 6,373 results | Barbara Walters 'Sad' Rosie Left 'The @ http://newsbusters.org/node/13065 | Rosie, Management, and the split scree @ http://suburbarazzi.lohudblogs.com/2007/05/29/rosie-management-and-the-split-screen/ | Rosie O'Donnell: No Peace With 'White @ http://www.nationalledger.com/artman/publish/article_272613702.shtml
<speechles> !torrent trailer park boys
<sp33chy> 123 torrents | 29 May 07/TV Shows torrentsforall.net Trailer Park Boys - Trailer Park Boys S0 (184.96 MB, 7s, 0p) @ http://mininova.org/get/727598 | 29 May 07/TV Shows www.ipodnova.net Trailer Park Boys S07E08 Let The Liquor (119.56 MB, 32s, 3p) @ http://mininova.org/get/727170 | 28 May 07/TV Shows Trailer Park Boys S07E08 HDTV XviD-2HD [ (176.17 MB, 1210s, 133p) @ http://mininova.org/get/725728 |
<sp33chy> www.mininova.org/search/?search=trailer+park+boys | btw, underlined in the torrent part = private tracker requiring login
the stuff works in the unofficial build. I'd rather madwoota continue his v2.0 build than have him worrying about fixing minor parser regexp/regsub problems, he is free to borrow anything from the unofficial to incorporate into his official build as well..
http://ereader.kiczek.com/UNOFFICIAL-incith-google-v1.94.tcl
this is only meant as a temporary solution until madwoota is ready to
deliver us his v2.0. this is not hijacking the thread, this is helping keep
the script working, and its unofficial.  |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Tue May 29, 2007 11:15 pm Post subject: |
|
|
Hello Speechles
Thanks for answering I appreciate. I m using ur unofficial incith-goole now while waiting for the next version of mawdoota. Thanks for the fix of !video and !book. I also like very much !wiki, and some other nice features.
By the way !top and !popular, are they working ? coz they give no results. I m big fan of video games. Also !gamespot isnt workin very well.
<The_Zircon> !gamespot god of war
<Anti-Flood> <a href="http://www.gamespot.com/pages/event/uberpop/index.php?event=god_of_war&tag=promo;title">God of War II Launch Center</a> </div><div class="posted mb5">Featured Search Result</div><div>Check out our review, video review, game guide, and more at our God of War II Launch Center.</div></div> <div class="w100p dots pt10 pb10 fl cb"> <div class="score"> <div class="number"> 9.2 (Release Date: Mar 13, 2007) @
<Anti-Flood> http://gamespot.com/ps2/action/godofwar2/index.html
Thanks very much for ur unofficial version, it s gonna help me to wait for the official version of mawdoota  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed May 30, 2007 12:17 am Post subject: |
|
|
fixed the gamespot parser, that problem wasn't widespread it's the result of gamespot injecting paid stuff into their design depending on what you search for. now it can read past all that.
and the problem with !top/!popular isn't the script. the problem is it uses gamerankings.com to get it's information, and lately that site is going thru major downtime... so once gamerankings works again, hopefully the script does with it.. heh
http://ereader.kiczek.com/UNOFFICIAL-incith-google-v1.94.tcl
edit: | Quote: | <speechles> !top ds
<sp33chy> GameRankings TOP GAMES NDS | Pokemon Diamond (84.7%) | Pokemon Pearl (84.6%) | Puzzle Quest: Challenge (82.3%) | FF Fables: Chocobo Tales (77.9%) | KCS: Arcade Hits (76.5%) | Custom Robo Arena (72.3%) | IGN (Thunderbolt) | IGN (Thunderbolt) | IGN (Thunderbolt) | IGN (Thunderbolt)
<speechles> !popular x360
<sp33chy> GameRankings POPULAR Xbox360 | Forza Motorsport 2 (93.0%) | Shadowrun (--) | Pirates of the Caribbean (54.9%) | WarTech: Senko no Ronde (72.7%) | Settlers of Catan (82.1%) | Castlevania: SOTN (90.1%) | C&C 3: Tiberium Wars (82.0%) | Rush'n Attack (66.0%) | Gears of War (93.8%) | Xevious (60.3%) | it figures right after i post that it suddenly starts to work.. weird
and notice the inclusion of IGN (Thunderbolt) multiple times in some of the entries, thats actually it reading past the games listed and into something else, but its a minor thing.. |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Wed May 30, 2007 1:12 am Post subject: |
|
|
Hello Speechles
That was Fast !! Thanks for the Fix indeed, !top and !popular are working now.
<The_Zircon> !top ps2
<Anti-Flood> GameRankings TOP GAMES PlayStation2 | God of War II (92.7%) | Burnout Dominator (77.4%) | GTA: Vice City Stories (77.2%) | Test Drive Unlimited (75.2%) | SingStar Pop (74.4%) | UEFA Champions 2007 (73.5%) | The Red Star (72.5%) | Game Revolution (RPGamer) | Game Revolution (RPGamer) | Game Revolution (RPGamer)
<The_Zircon> !popular ps2
<Anti-Flood> GameRankings POPULAR PlayStation2 | Odin Sphere (85.6%) | GrimGrimoire (90.0%) | Dawn of Mana (54.8%) | Tomb Raider: Anniversary (76.6%) | Final Fantasy XII (92.0%) | The Red Star (72.5%) | God of War II (92.7%) | Pirates of the Caribbean (57.0%) | Atelier Iris 3 (66.7%) | Rogue Galaxy (84.2%)
EDITED : By the way, can you please add an option to make !wiki work with the French Wikipedia fr.wikipedia.org instead of the english one ? Thanks in advance |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed May 30, 2007 6:22 am Post subject: |
|
|
| Zircon wrote: | | EDITED : By the way, can you please add an option to make !wiki work with the French Wikipedia fr.wikipedia.org instead of the english one ? Thanks in advance |
okay, a few friends have asked the same exact thing, so here is my attempt. Ebay and Wikipedia will now allow you to specify which country it gets its data from.
!wiki [.2-digit-country-code] <search terms>
!ebay [.country.code.ebay.uses] <search terms>
For the moment you can sorta test this out and see if indeed it works for you. | Quote: | <speech|es> !wiki .de Roboter
<sp33chy> Roboter | Roboter sind stationäre oder mobile Maschinen, die nach einem bestimmten Programm festgelegte Aufgaben erfüllen. Allerdings hat sich die Bedeutung im Laufe der Zeit gewandelt. Der Begriff Roboter (tschechisch: robot) wurde von Josef und Karel apek Anfang des 20. Jahrhunderts durch die Science-Fiction - Literatur geprägt. Sein Ursprung liegt im slawischen Wort rob @ http://de.wikipedia.org/wiki/Roboter
<speech|es> !wiki .fr bread
<sp33chy> Garlic Bread | Garlic Bread est un groupe formé de quatre musiciens français qui revisitent les musiques irlandaises en y ajoutant leurs influences musicales ( musique classique, jazz, rock, musique traditionnelle française...). Un quatuor fin et tonique à la fois ( flûte, violon, guitare, basse et chant ). @ http://fr.wikipedia.org/wiki/Garlic_Bread
<speech|es> !wiki normal
<sp33chy> Normal | " Normal " can refer to several topics, including: Normality in behavior. Normal, numerous mathematical concepts. Normal schools. NORML, the National Organization for the Reform of Marijuana Laws. Normal form in database normalization, as in first normal form, second normal form, third normal form, etc.. Normal distribution, a continuous probability distribution. @ http://en.wikipedia.org/wiki/Normal
<speechles> !e .de dead
<sp33chy> 2989 auctions | CD Grateful Dead - Grateful Dead (Skull, EUR 10,46(EUR2,99), Nur Sofort-Kaufen, 5Min. @ http://cgi.ebay.de/_W0QQItemZ260122372705 | DVD -LEGION OF THE DEAD--HORROR--NEU, EUR 3,98(EUR3,00), Sofort & Neu, 35Min. @ http://cgi.ebay.de/_W0QQItemZ280118636611 | DEAD BEAT-THE INNOCENT OF NIHILISM 10" R, EUR 15,00(Siehe Beschreibung), Nur Sofort-Kaufen, 39Min. @ http://cgi.ebay.de/_W0QQItemZ300115009475
<speechles> !e .fr sony
<sp33chy> 13548 auctions | ECRAN LCD POUR SONY ERICSSON W550i, 1,99 EUR(9,99EUR), Achat immédiat, 6m @ http://cgi.ebay.fr/_W0QQItemZ200114926776 | MANETTE Vibrante DUAL SHOCK PR SONY Play, 500,00 EUR(--), Achat immédiat, 9m @ http://cgi.ebay.fr/_W0QQItemZ110133821654 | PS3 CONSOLE SONY, 1,99 EUR(8,99EUR), 1 Enchères, 11m @ http://cgi.ebay.fr/_W0QQItemZ120125134436 | have fun..try any country you like, see which work.
http://ereader.kiczek.com/UNOFFICIAL-incith-google-v1.94.tcl
not the prettiest lines of code, lots of repetivity and certainly could use major cleanup, but it works 
Last edited by speechles on Tue Jun 05, 2007 4:39 am; edited 6 times in total |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jun 03, 2007 8:41 pm Post subject: |
|
|
Just a small post to mention i've fixed 'somewhat' the language checking.. but not really.. heh. Borrowed some error catching code of rosc2112's (hope she doesn't mind). Now erroneous countries entered will be caught as errors and returned. I don't know exactly which countries ebay has or which wikipedia has to even begin building a list to compare user input against, that is coming up eventually.
| Code: | # set this to the default country you would like wikipedia to use when
# no country is specified. default is "en". country is 2-letter wiki code.
# http://*.wikipedia.org/ - en, de, it, es, fr, these are examples.
variable wiki_country "en"
# set this to the default country you would like ebay to use when no
# country is specified. default is "com". country is ebay url extension
# http://ebay.*/ - co.uk, de, es, com, com.au, these are examples.
variable ebay_country "com" |
Hopefully this addition is self explanatory.
Updated the link in my post above with these changes if you care to try it out. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Jun 06, 2007 4:20 pm Post subject: |
|
|
| Code: | # set this to the default country you would like google.* sites to use when
# no country is specified. default is "com". country is google extension.
# http://google.*/ - co.uk, de, es, com, com.au, these are examples.
variable google_country "com" |
| Quote: | <speechles> !google .fr define:fromage
<sp33chy> Un fromage est un aliment moulé, obtenu à partir de la coagulation du lait suivie ou non de fermentation. C'est un aliment riche en calcium. On fabrique du fromage à partir de lait de vache principalement, mais aussi de brebis, de chèvre, de bufflonne. @ http://fr.wikipedia.org/wiki/Fromage ( http://www.google.fr/search?q=define:fromage )
<speechles> !google .es "drogen bell z"
<sp33chy> Quizás quiso decir: "dragon ball z" Su búsqueda - "drogen bell z" - no produjo ningún documento.
<speechles> !google .fr "dregon boll z"
<sp33chy> Essayez avec cette orthographe : "dragon ball z" Les termes de recherche spécifiés - "dregon boll z" – ne correspondent à aucun document.
<speechles> !google "dregon boll z"
<sp33chy> Did you mean: "dragon boll z" Your search - "dregon boll z" - did not match any documents.
<speechles> !google "ashjdsahdhjasdsajd"
<sp33chy> Tip: Try removing quotes from your search to get more results. Your search - "ashjdsahdhjasdsajd" - did not match any documents.
<speechles> !google .es fiesta
<sp33chy> 64.900.000 results | Fiesta fácil @ http://www.fiestafacil.com/ | FIESTA HOTEL GROUP @ http://www.fiestahotelgroup.com/ | FIESTA HOTEL GROUP @ http://www.fiestahotelgroup.com/es/home.asp | La fiesta - Desmadre a la... española @ http://www.terra.es/cine/lafiesta/
<speechles> !news .de das
<sp33chy> 595.181 results | Das Lauern im Camp @ http://www.berlinonline.de/berliner-zeitung/print/vermischtes/659912.html | „Das hat große Tragweite" @ http://www.faz.net/s/Rub7F4BEE0E0C39429A8565089709B70C44/Doc~E96548616BEFD48B299A212EB0D9DFA85~ATpl~Ecommon~Scontent.html | "No go" für das Logo @ http://www.spiegel.de/netzwelt/web/0,1518,486990,00.html
<speechles> !video .fr drôle
<sp33chy> 1 090 results | Courage The Cowardly Dog Dr.Le Quak (C @ http://video.google.fr/videoplay?docid=-6475761599880113895 | Utilisation de l'Ayahuasca par le Dr Ma @ http://video.google.fr/videoplay?docid=-1779943651141749663 | Dr.Z (... Ecrit et réalisé par Vé @ http://video.google.fr/videoplay?docid=6076583439832217973 | DR. Pollux chocolat chaud (un record d @ http://video.google.fr/videoplay?docid=-6594305039012977768
<speechles> !blog .es taco
<sp33chy> 1,504,589 results | Taco de billar con puntero láser @ http://www.trespasitos.com/2007/06/05/taco-de-billar-con-puntero-laser/ | El fútbol en Iraq @ http://tacodejara.blogspot.com/2007/05/el-ftbol-en-iraq.html | EL TACO @ http://kittykatsays.blogspot.com/2007/03/el-taco.html
<speechles> !image .fr eiffel
<sp33chy> 827 000 results | http://lloydi.com/travel-writing/wallpaper/paris/la-tour-eiffel_1by7.jpg | http://lloydi.com/travel-writing/wallpaper/paris/la-tour-eiffel_8by6.jpg | http://fc.sad60.k12.me.us/~josborne/FOV1-0001F314/002CA64F-011EDE31.0/eiffel_tower_night-wallpaper.jpg | http://www.egm.it/daniele/eiffel-broke.jpg
<speechles> !book .it pizza
<sp33chy> 4950 results | Curious George and the Pizza - Pagina 24 (di Margaret Rey - 1985) @ http://books.google.it?id=oQ4RwYzf8FoC | Million Dollar Car & $250,000 Pizza - Pagina 3 (di Allyson Lewis - 2000 - 336 pagine) @ http://books.google.it?id=2if2jb1ByuoC | God, the Devil and a Perfect Pizza: Ten Philosophical Questions - Pagina 1 (di Govier, Trudy - 1989) @ http://books.google.it?id=RN19Qhqn0v4C
|
As you can see, this is attempting to dynamically parse ANY language and give appropriate results entirely in the SAME language. You can now use the google parsers with your language of choice, as can your users. Now this may or may not work with certain languages (as this is proof-of-concept code, alot of languages are untested), but for the majority it should work just fine. Hopefully madwoota will add an option such as this in his V2.0 version to allow dynamic language selection as well. Enjoy and let me know what you think. Bugs? Bad Parsing? Html Exposed? As I only speak english I cannot test this on my own. Thanks.
http://ereader.kiczek.com/UNOFFICIAL-incith-google-v1.95.tcl
Most of all, remember, just to have fun...
edit: now includes google translations ;D
Last edited by speechles on Thu Jun 07, 2007 11:26 pm; edited 1 time in total |
|
| 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
|
|