This thread is to minimize the impact my modifications are having in the regular incith-google support thread. This modification at inception was meant just for me to use in my normal gaming related irc channels. Over the course of time, it has turned into a monster. Mostly due to requests from friends asking for numerous sites to be 'plugged' into it. Eventually they asked for the script to use in their channels, and suggested to me that I put something here, which I did at first within the main incith-google thread. Since this now has taken on a life of it's own it's time to do like others have suggested and spawn a new thread for it. So here it is, my attempt to cover every possible suggestion and all within the incith-google engine.
Code: Select all
# Basic usage guide: #
# .chanset #channel +google #
# !google [.google.country.code] [define:|spell:|movie:] #
# <search terms> <1+1> <1 cm in ft> <patent ##> #
# <weather city|zip> <??? airport> #
# !images [.google.country.code] <search terms> #
# !groups [.google.country.code] <search terms> #
# !news [.google.country.code] <search terms> #
# !local [.google.country.code] <what> near <where> #
# !book [.google.country.code] <search terms> #
# !video [.google.country.code] <search terms> #
# !scholar [.google.country.code] <search terms> #
# !fight <word(s) one> vs <word(s) two> #
# !youtube [.youtube.country.code] <search terms> #
# !translate region@region <text> #
# !gamespot <search terms> #
# !gamefaqs <system> in <region> #
# !blog [.google.country.code] <search terms> #
# !ebay [.ebay.country.code] <search terms> #
# !ebayfight <word(s) one> vs <word(s) two> #
# !wikipedia [.wiki-country-code] <search terms>[#subtag] #
# !wikimedia [.www.wikisite.org[/wiki]] <search terms>[#subtag]
# !locate <ip or hostmask> #
# !review <gamename> [@ <system>] #
# !torrent <search terms> #
# !worst <system> #
# !best <system> #
# !dailymotion <search terms> #
# !ign <search terms> #
# !myspace <search terms> #
# !trends [.google.country.code] <YYYY-MM-DD> #
http://ereader.kiczek.com/UNOFFICIAL-in ... -v1.95.tcl ( v1.9.5 - July 18th, 2oo7 ) - OLD (left for legacy purposes)
http://ereader.kiczek.com/incith-google-v1.98j.tcl ( v1.9.8j - June 19th, 2oo8 ) - Stable (missing features)
http://ereader.kiczek.com/incith-google.tcl ( v2.1x - Nov 30th, 2o12 ) - Present BETA (full featured)
google, wikipedia and ebay now use dynamic language selection and dynamic messaging. So searching in french, will give french results and french error messages. Works similar with any country's dialect. (eg. !google .fr something | !ebay .it pc | !wikipedia .de boot ). There are also settings within the config to control language selection (default language) if user omits it.
EDiT: complete multi-language ability is now finished as you can see above and it looks damn sexy. All that is left is to add socket/timeout error detection to remaining procs. Then some code comparing to spot anything reused within the script to condense it. The basic optimizing gamea few examples, irc wrote:<speechles> !google .fr something
<sp33chy> 689 000 000 Résultats | Paroles You Give Me Something - James @ http://musique.ados.fr/James-Morrison-c ... 07583.html | Something. @ http://www.something.com/ | Something @ http://something.exprimetoi.net/ | Video James Morrison - You Give Me Some @ http://www.dailymotion.com/video/xjlku_ ... e-somethin
<speechles> !ebay .it pc
<sp33chy> 6988 Aste online | PC COMPUTER PENTIUM DUAL CORE 3.0GHZ+ASU, EUR 5,00(EUR6,00), Nuovo e Subito , 1m @ http://cgi.ebay.it/_W0QQItemZ260129871882 | PC CD ROM MEN OF VALOR, EUR 9,99(EUR9,00), Compralo Subito, 3m @ http://cgi.ebay.it/_W0QQItemZ180132487868 | KIT USB PER PC E NOTEBOOK HUB MOUSE LAN, EUR 20,00(EUR10,00), Nuovo e Subito , 5m @ http://cgi.ebay.it/_W0QQItemZ140132416039
<speechles> !wikipedia .de boot
<sp33chy> Boot | Ein Boot ist ein Fahrzeug, das nach dem archimedischen Prinzip auf dem Wasser, oder als U-Boot exakt ausbalanciert, (ebenfalls nach dem Archimedischen Prinzip ), in einer von der Besatzung exakt definierbaren Tiefe im Wasser schwimmt. Von Flößen unterscheiden sich Boote, wie auch Schiffe, durch den eigenen Antrieb. Während ein Floß lediglich durch die Strömung des @ http://de.wikipedia.org/wiki/Boot
<speechles> !news .es hilton
<sp33chy> 3.968 Resultados | Paris Hilton rompe el silencio y habla @ http://www.milenio.com/index.php/2007/06/27/85770/ | Larry King privilegia a Paris Hilton s @ http://www.prensalatina.com.mx/Article. ... anguage=ES | El otro castigo de Paris Hilton @ http://www.larioja.com/20070627/socieda ... 71726.html
<speechles> !wikipedia .nl asghdghasdghasdgh
<sp33chy> Uw zoekvraag heeft geen resultaten opgeleverd. Controleer of de woorden juist gespeld zijn.
<speechles> !ebay .de asdasjhasjdasjd
<sp33chy> 0 Artikel gefunden für asdasjhasjdasjd
<speechles> !news .com.br reirom
<sp33chy> Sua pesquisa - reirom - não encontrou nenhum documento correspondente.
<speechles> !local .fr tower near eiffel tower
<sp33chy> 1 740 Résultats | Best Of Tower @ 19, Boulevard Grenelle, 75015 Paris - 01 45 71 67 51 | White and Tower (SA) @ 10, Rue Civry, 75016 Paris - 01 40 71 07 19 | Bimbo Tower @ 5, Passage St Antoine, 75011 Paris - 01 49 29 76 70 | Tower International SARL @ 163, Route Bezons, 78420 Carrières sur Seine - 01 39 13 09 41
<speechles> !local .com.au marijuana near the forest
<sp33chy> Your search for marijuana near the forest did not match any locations.
<speechles> !local .com marijuana near the forest
<sp33chy> Did you mean: Forest City, NC; Forest, MS; Forest, VA; Forest City, IA; Forest, OH; Forest City, PA; Forest City, IL; Forest, IN; Forest City, MO; Forest, Uninc St Croix County, WI
<speechles> !local google tcl script that can scrape in damn near any language
<sp33chy> We could not understand the location any language
<speechles> !yt .de hello
<sp33chy> YouTube requires the .com switch at this time for returning .de results
<speechles> !yt funny
<sp33chy> 2,280,000 results | extreme funny (.....funny) @ http://youtube.com/watch?v=GuMMfgWhm3g | Chet Baker in Tokyo ' 87 - My Funny Va @ http://youtube.com/watch?v=dX-hMhMTjEg | Funny Commercials II (So many folks en @ http://youtube.com/watch?v=vvTU0rlhBVw | goodfellas Full "Funny Guy" Scene (DVD @ http://youtube.com/watch?v=twW_riHWz_4 | Melinda Doolittle - My Funny Valentine @
<sp33chy> http://youtube.com/watch?v=kNAxnwYDrAM
<speechles> !yt .it divertente
<sp33chy> YouTube Risultati | Grande Fratello Ungherese (troppo diver @ http://it.youtube.com/watch?v=lkSDmkvNYyQ | Divertente le papere del calcio 2 (Stu @ http://it.youtube.com/watch?v=MVskdlh_v1M | Acuto Doppiaggio divertente Film Rocky @ http://it.youtube.com/watch?v=VMghdDyGcpA | Tossico divertente (un incursione nost @ http://it.youtube.com/watch?v=z744jlPV8K8 | Caos a Cavallino ~ Divertente / Assurd @
<sp33chy> http://it.youtube.com/watch?v=83VCwp87c0k
<speechles> !yt .fr asdasuydauysduyasd
<sp33chy> Aucune vidéo ne correspond à "asdasuydauysduyasd".
EDiT2: wikipedia had problems displaying proper 'no results' message in some languages, have completely resolved the issue and added a new feature to the wikipedia parser, sub-tagging.. yay.. see an example below how this works:
You can use this with any language as well, by using the country switch. This example is just to show the new #subtag feature. If you need it explained read thru the rest of this thread. Enjoy<speechles> !w web scraping
<sp33chy> Web scraping | Web scraping generically describes any of various means to extract content from a website over HTTP for the purpose of transforming that content into another format suitable for use in another context. @ http://en.wikipedia.org/wiki/Web_scraping
<speechles> !w web scraping#toc
<sp33chy> Web scraping | ToC: Scraper sites; Legal issues; Technical measures to stop bots; Notes and references; See also @ http://en.wikipedia.org/wiki/Web_scraping#toc
<speechles> !w web scraping#legal
<sp33chy> Web scraping | Legal issues Scraping is against the Terms of Use of many commercial websites, and can lead to legal liability for those involved in authoring, distributing, and even using software which does so. The Digital Millennium Copyright Act in the USA and European Union Copyright Directive specifically address "Circumvention of Copyright Protection Schemes", which impact @
<sp33chy> http://en.wikipedia.org/wiki/Web_scraping#Legal_issues [1 Redirect(s)]
<speechles> !w web scraping#tech
<sp33chy> Web scraping | Technical measures to stop bots A web master can use various measures to stop or slow a bot. Some techniques include: Blocking an IP address. This will also block all browsing from that address.. If the application is well behaved, adding entries to robots.txt will be adhered to. You can stop Google and other well-behaved bots this way.. Sometimes bots declare who @
<sp33chy> http://en.wikipedia.org/wiki/Web_scrapi ... _stop_bots [1 Redirect(s)]