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.

incith:google :)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
r
rix
Halfop
Posts: 42
Joined: Wed Sep 21, 2005 1:04 pm
Location: Estonia

Post by rix »

With speechles version, search gives only 1 result even though 3 is defined. Also, !wiki doesn't seem to work.
O
Owdy
Voice
Posts: 1
Joined: Tue May 22, 2007 4:58 pm

Post by Owdy »

Great script. Thank you for sharing! :)
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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: Select all

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).
<speechles> !w works
<@sp33chy> Works | Works may refer to: Works (album) (disambiguation), various music albums. An author's or artist's body of work of art. Engineering structures, projects, and so on, including: Public works, engineering projects carried out by the state on behalf of the community. Earthworks (engineering), created through moving soil or unformed rock. Waterworks, another name for a @ http://en.wikipedia.org/wiki/Works

<speechles> !g more than 1 result
<@sp33chy> 551,000,000 results | [gpgpu]report: output more than 1 resul @ http://www.gamedev.net/community/forums ... _id=446674 | [rend2texture]how to write more than 1 @ http://www.gamedev.net/community/forums ... id=2951527 | Webyog Forums > How To Create More Than @ http://www.webyog.com/forums//lofiversi ... t2631.html | [#MNT-1388] search with more than 1 pa @
[2:00pm] [@sp33chy] http://bugs.osuosl.org/browse/MNT-1388
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.
r
rix
Halfop
Posts: 42
Joined: Wed Sep 21, 2005 1:04 pm
Location: Estonia

Post by rix »

Surely:
Eggdrop v1.6.18
Linux debian 2.4.27-386
TCL 8.4
[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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Reset the seperator:

Code: Select all

variable seperator " | "
.. a more detailed result will appear. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
r
rix
Halfop
Posts: 42
Joined: Wed Sep 21, 2005 1:04 pm
Location: Estonia

Post by rix »

I just set the separator to "\n". Tho it's odd that " \n " doesn't work anymore. It used to work before. :/
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

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 ?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

@ Zircon:
<speechles> !video girl
<sp33chy> 536,086 videos | Destiny's Child - Girl (Destiny's Ch @ http://video.google.com/videoplay?docid ... 3717711110 | The Little Girl Giant (... of Sund @ http://video.google.com/videoplay?docid ... 9714790105 | Laughing Girl (... this is my frie @ http://video.google.com/videoplay?docid ... 6333175183 | New Edition - Candy Girl (... ne v @
<sp33chy> http://video.google.com/videoplay?docid ... 0143851289

<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_let ... rt_Brtiney | Brtiney at Promises Rehab in Malibu @ http://bricksandstones.blogspot.com/200 ... alibu.html | Brtiney Spears Suicide Story, Real Or @ http://timworstall.typepad.com/419_er_w ... ears_.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 ... it-screen/ | Rosie O'Donnell: No Peace With 'White @ http://www.nationalledger.com/artman/pu ... 3702.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-in ... -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. :P
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

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/ube ... 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 :)
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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.
<speechles> !game mario kart
<sp33chy> 8 games | Mario Kart DS (DS) (Release Date: Nov 14, 2005) @ http://gamespot.com/ds/driving/mariokartds/index.html | Mario Kart 64 (WII) (Release Date: Jan 29, 2007) @ http://gamespot.com/wii/driving/marioka ... index.html | Mario Kart: Double Dash!! (GC) (Release Date: Nov 17, 2003) @ http://gamespot.com/gamecube/driving/ma ... index.html
<speechles> !game god of war
<sp33chy> 3 games | God of War II (PS2) (Release Date: Mar 13, 2007) @ http://gamespot.com/ps2/action/godofwar2/index.html | God of War: Chains of Olympus (PSP) (Release Date: Q4 2007) @ http://gamespot.com/psp/action/godofwar/index.html | God of War (PS2) (Release Date: Mar 22, 2005) @ http://gamespot.com/ps2/action/godofwar/index.html
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-in ... -v1.94.tcl

edit:
<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..
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

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
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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.
<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-in ... -v1.94.tcl
not the prettiest lines of code, lots of repetivity and certainly could use major cleanup, but it works :P
Last edited by speechles on Tue Jun 05, 2007 4:39 am, edited 6 times in total.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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: Select all

    # 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. :D
Updated the link in my post above with these changes if you care to try it out.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

    # 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" 
<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-zei ... 59912.html | „Das hat große Tragweite" @ http://www.faz.net/s/Rub7F4BEE0E0C39429 ... ntent.html | "No go" für das Logo @ http://www.spiegel.de/netzwelt/web/0,15 ... 90,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= ... 9880113895 | Utilisation de l'Ayahuasca par le Dr Ma @ http://video.google.fr/videoplay?docid= ... 1141749663 | Dr.Z (... Ecrit et réalisé par Vé @ http://video.google.fr/videoplay?docid= ... 9832217973 | DR. Pollux chocolat chaud (un record d @ http://video.google.fr/videoplay?docid= ... 9012977768

<speechles> !blog .es taco
<sp33chy> 1,504,589 results | Taco de billar con puntero láser @ http://www.trespasitos.com/2007/06/05/t ... ero-laser/ | El fútbol en Iraq @ http://tacodejara.blogspot.com/2007/05/ ... -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/wallpa ... l_1by7.jpg | http://lloydi.com/travel-writing/wallpa ... l_8by6.jpg | http://fc.sad60.k12.me.us/~josborne/FOV ... lpaper.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-in ... -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.
Post Reply