<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19861" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2016-05-30T18:06:36-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19861</id>

		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2016-05-30T18:06:36-04:00</updated>

		<published>2016-05-30T18:06:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105062#p105062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105062#p105062"/>
		<title type="html"><![CDATA[google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105062#p105062"><![CDATA[
Since the google API is no longer working, this script seems a great alternative. Does anyone know how to show the end result URL instead of the google URL? For instance, <a href="http://www.eggheads.org/" class="postlink">http://www.eggheads.org/</a> instead of <a href="http://www.google.fr/search?btnI=&amp;q=Eggdrop&amp;gws_rd=cr&amp;ei=EKbJVIfKENfuaJbQgsgE" class="postlink">http://www.google.fr/search?btnI=&amp;q=Egg ... fuaJbQgsgE</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Mon May 30, 2016 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2015-02-04T09:09:05-04:00</updated>

		<published>2015-02-04T09:09:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103458#p103458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103458#p103458"/>
		<title type="html"><![CDATA[google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103458#p103458"><![CDATA[
it's due to the <strong class="text-strong">google:go</strong> procedure.<br><div class="codebox"><p>Code: </p><pre><code>   foreach {name value} $state(meta) {       if {[regexp -nocase ^location$ $name]} {          set newurl [string trim $value]          regsub -all "btnI=&amp;" $url "" url          if {[regexp {imgres} $newurl]} { set newurl "http://[string range $newurl [expr [string first = $newurl]+1] [expr [string first &amp; $newurl]-1]]" }          return "$newurl More: $url$query"       }    } </code></pre></div>That's why the examples show that output format, with 'More:'<br><br>Your server is using its local google node, you'd have to either edit out the regex for ^location, or add an if statement to change the URL if string match "*.google.fr*" to replace with *.google.com<br><br>Someone will no doubt have a better script, as there are many for google, you may have to try other's, or hope someone can edit yours, or if you can edit it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Wed Feb 04, 2015 9:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sanzen]]></name></author>
		<updated>2015-01-28T23:17:13-04:00</updated>

		<published>2015-01-28T23:17:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103452#p103452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103452#p103452"/>
		<title type="html"><![CDATA[google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103452#p103452"><![CDATA[
I am using the google.tcl that uses the feeling lucky part of google. For some reason it is pulling the first link from google.fr and I am not sure as to why. There is nothing in the code to suggest why it would pull from google.fr unless I am missing something. <br><div class="codebox"><p>Code: </p><pre><code>#google.tcl v0.31 - Using the "I'm feeling lucky" button this script returns the best result based on the string you input. Also can return image and regional results. This script is future proof. (Default public commands are !google, !image and !googleuk).#based on scripts by aNa|0Gueset google(ver) "0.31"#Simulate a browser, ie: Mozillaset google(agent) "MSIE 6.0"#google search triggerset google(g_cmd) "!google"#google uk search triggerset google(guk_cmd) "!googleuk"#google image search triggerset google(gi_cmd) "!image"#google prefixset google(prefix) "* Google:"package require httpbind pub - $google(g_cmd) pub:googlebind pub - $google(guk_cmd) pub:googleukbind pub - $google(gi_cmd) pub:imageproc google:go { url arg } {global googleregsub -all " " $arg "+" queryset lookup "$url$query"  set token [http::config -useragent $google(agent)]set token [http::geturl $lookup]puts stderr ""upvar #0 $token stateset max 0foreach {name value} $state(meta) {if {[regexp -nocase ^location$ $name]} {set newurl [string trim $value]regsub -all "btnI=&amp;" $url "" urlif {[regexp {imgres} $newurl]} { set newurl "http://[string range $newurl [expr [string first = $newurl]+1] [expr [string first &amp; $newurl]-1]]" }return "$newurl More: $url$query"}}}proc pub:google { nick uhost handle channel arg } {global googleif {[llength $arg]==0} { putserv "NOTICE $nick :Usage: $google(g_cmd) &lt;string&gt;" }set url "http://www.google.com/search?btnI=&amp;q="set output [google:go $url $arg]putserv "PRIVMSG $channel :$nick, $google(prefix) $output"}proc pub:googleuk { nick uhost handle channel arg } {global googleset arg "$arg&amp;meta=cr%3DcountryUK%7CcountryGB"if {[llength $arg]==0} { putserv "NOTICE $nick :Usage: $google(guk_cmd) &lt;string&gt;" }set url "http://www.google.co.uk/search?btnI=&amp;q="set output [google:go $url $arg]putserv "PRIVMSG $channel :$nick, $google(prefix) $output"}proc pub:image { nick uhost handle channel arg } {global googleif {[llength $arg]==0} { putserv "NOTICE $nick :Usage: $google(gi_cmd) &lt;string&gt;" }set url "http://images.google.com/images?btnI=&amp;q="set output [google:go $url $arg]putserv "PRIVMSG $channel :$nick, $google(prefix) $output"}putlog "google.tcl $google(ver) loaded"</code></pre></div><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1711" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... ad&amp;id=1711</a><br><br><br>4 samples of what happens:<br><div class="codebox"><p>Code: </p><pre><code>&lt;Sanzen&gt; !google testing&lt;fubar&gt; Sanzen, * Google: http://www.google.fr/search?btnI=&amp;q=testing&amp;gws_rd=cr&amp;ei=CqbJVOKIAsTharqygfgF More: http://www.google.com/search?q=testing&lt;Sanzen&gt; !google Eggdrop&lt;fubar&gt; Sanzen, * Google: http://www.google.fr/search?btnI=&amp;q=Eggdrop&amp;gws_rd=cr&amp;ei=EKbJVIfKENfuaJbQgsgE More: http://www.google.com/search?q=Eggdrop&lt;Sanzen&gt; !google OnePieceBay&lt;fubar&gt; Sanzen, * Google: http://www.google.fr/search?btnI=&amp;q=OnePieceBay&amp;gws_rd=cr&amp;ei=HKbJVPfwNJPraOqdgdAE More: http://www.google.com/search?q=OnePieceBay&lt;Sanzen&gt; !google abs&lt;fubar&gt; Sanzen, * Google: http://www.google.fr/search?btnI=&amp;q=abs&amp;gws_rd=cr&amp;ei=VJjJVOGjMcz4UP6lgNAG More: http://www.google.com/search?q=abs</code></pre></div><br>edit: I wonder if it could be pulling from google.fr because that is where my server ism thoughts on that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12330">Sanzen</a> — Wed Jan 28, 2015 11:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
