<?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/20889" />

	<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>2020-12-24T18:28:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-12-24T18:28:32-04:00</updated>

		<published>2020-12-24T18:28:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109267#p109267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109267#p109267"/>
		<title type="html"><![CDATA[I need script for searching]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109267#p109267"><![CDATA[
<blockquote class="uncited"><div>from where u take api and token from google console ?</div></blockquote>This should be sufficient.<br><br><a href="https://developers.google.com/webmaster-tools/search-console-api/v1/configure" class="postlink">https://developers.google.com/webmaster ... /configure</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Thu Dec 24, 2020 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SlaSerX]]></name></author>
		<updated>2020-12-22T16:10:34-04:00</updated>

		<published>2020-12-22T16:10:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109257#p109257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109257#p109257"/>
		<title type="html"><![CDATA[I need script for searching]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109257#p109257"><![CDATA[
from where u take api and token from google console ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12298">SlaSerX</a> — Tue Dec 22, 2020 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2020-12-22T12:30:44-04:00</updated>

		<published>2020-12-22T12:30:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109256#p109256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109256#p109256"/>
		<title type="html"><![CDATA[I need script for searching]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109256#p109256"><![CDATA[
<blockquote class="uncited"><div>i try but <br>20&lt;SlaSerX&gt;30 .google linux<br>18&lt;Test118&gt; Error querying Google: 403 -&gt; ok<br>20&lt;SlaSerX&gt;30 .google test<br>18&lt;Test118&gt; Error querying Google: 403 -&gt; ok<br><br>i setup my api and etc</div></blockquote>It's a 403 error. That means someone is banning you from accessing google, maybe a proxy? Are you sure the API key and the search ID work? It works flawlessly on my end<div class="codebox"><p>Code: </p><pre><code>(2020-12-22 13:27:56) CP1832: .youtube elephant stone(2020-12-22 13:28:00) BOT: The Stone Roses - Elephant Stone https://www.youtube.com/watch?v=LcyK-edUByk</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Tue Dec 22, 2020 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SlaSerX]]></name></author>
		<updated>2020-12-22T11:50:47-04:00</updated>

		<published>2020-12-22T11:50:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109255#p109255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109255#p109255"/>
		<title type="html"><![CDATA[I need script for searching]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109255#p109255"><![CDATA[
i try but <br>20&lt;SlaSerX&gt;30 .google linux<br>18&lt;Test118&gt; Error querying Google: 403 -&gt; ok<br>20&lt;SlaSerX&gt;30 .google test<br>18&lt;Test118&gt; Error querying Google: 403 -&gt; ok<br><br>i setup my api and etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12298">SlaSerX</a> — Tue Dec 22, 2020 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2020-12-21T22:29:51-04:00</updated>

		<published>2020-12-21T22:29:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109248#p109248</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109248#p109248"/>
		<title type="html"><![CDATA[Re: I need script for searching]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109248#p109248"><![CDATA[
This is the script I'm using to query google. You can replace the youtube section of the code (at the very bottom) with whichever site you want to google into. <div class="codebox"><p>Code: </p><pre><code>################################################################################################  ## Advanced Google.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help  ##  ##################################################################################################  ## To use this script you must set channel flag +google (ie .chanset #chan +google) ##  ################################################################################################catch {package require foobar}catch {package require http}catch {package require json}if {[catch {package require tls}]} {set httpsSupport false} else {set httpsSupport true}set url "www.googleapis.com/customsearch/v1?"if {$httpsSupport} {::http::register https 443 [list ::tls::socket -request 1 -require 0 -tls1 1]set url https://$url} else { set url http://$url }################################################################################################  ##                             Start Setup.                                         ##  ################################################################################################## Change the character between the "" below to change the command character/trigger.       ##set cmdchar "."## Change the country code between the "" below to change the language of your results.     ##set googlectry "en"## Change the number between the "" below to change the number of results returned.         ##set googlemax "1"set API_KEY"YOUR API KEY"set SEARCH_ID"YOUR ID"################################################################################################  ##                           End Setup.                                              ## ################################################################################################proc googleweb {nick host hand chan type search site} {global googlectry googlemax API_KEY SEARCH_ID url        if {$search == ""} {puthelp "PRIVMSG $chan :Error: &lt;search&gt; is blank"; return 1 }if {$type == ""} { set googleurl $url[::http::formatQuery alt json key $API_KEY cx $SEARCH_ID hl $googlectry siteSearch $site q $search]} else { set googleurl $url[::http::formatQuery alt json key $API_KEY cx $SEARCH_ID hl $googlectry siteSearch $site q $search searchType $type] }if {[catch {http::geturl $googleurl -timeout 5000} sockerr]} {puthelp "privmsg $chan :Timeout querying Google: $sockerr"return 1} elseif {[http::ncode $sockerr] != 200 || ![string equal [http::status $sockerr] "ok"]} {puthelp "privmsg $chan :Error querying Google: [http::ncode $sockerr] -&gt; [http::status $sockerr]"http::cleanup $sockerrreturn 1} else {set data [http::data $sockerr]http::cleanup $sockerrset json [ ::json::json2dict $data ]for { set i 0 } { $i &lt; $googlemax } { incr i } {set title ""set link ""catch { set title [ dict get [ lindex [ dict get $json items ] $i ] title ] }catch { set link  [ dict get [ lindex [ dict get $json items ] $i ] link ] }set index [ expr $i + 1 ]if {[string length $title] &amp;&amp; [string length $link]} {puthelp "PRIVMSG $chan :[encoding convertfrom utf-8 [dehex $title]] $link"} else {puthelp "PRIVMSG $chan :Google found no results"}}}return 1}proc dehex {string} {    regsub -all {[\[]} $string "\(" string    regsub -all {[\]]} $string "\)" string    regsub -all {^\{|\}$} $string "" string    set string [subst [regsub -nocase -all {\\u([a-f0-9]{4})} $string {[format %c [decimal \1]]}]]    set string [subst [regsub -nocase -all {\%([a-f0-9]{2})} $string {[format %c [decimal \1]]}]]    set string [subst [regsub -nocase -all {\&amp;#([0-9]{2});} $string {[format %c \1]}]]    set string [subst [regsub -nocase -all {\&amp;#x([0-9]{2});} $string {[format %c [decimal \1]]}]]    set string [string map {" \" · · &amp; &amp; &lt;b&gt; \002 &lt;/b&gt; \002 – – » \    » « « Ü Ü ü ü Á Á á á É É é é Í Í í \    í Ó Ó ó ó Ñ Ñ ñ ñ Ú Ú ú ú æ æ   " " &amp;apos; \' \   \( \002\(\002 \) \002\)\002 \{ \002\{\002 \} \002\}\002} $string]    return $string}proc google {nick host hand chan text} { googleweb $nick $host $hand $chan "" $text ""}proc gimage {nick host hand chan text} { googleweb $nick $host $hand $chan image $text ""}foreach bind [binds google] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc}foreach bind [binds gimage] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc}bind pub - ${cmdchar}google googlebind pub - ${cmdchar}gimage gimageproc youtube {nick host hand chan text} { googleweb $nick $host $hand $chan "" $text youtube.com/watch }foreach bind [binds youtube] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc}bind pub - ${cmdchar}youtube youtubeputlog "Google script loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Mon Dec 21, 2020 10:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SlaSerX]]></name></author>
		<updated>2020-12-21T05:06:19-04:00</updated>

		<published>2020-12-21T05:06:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109247#p109247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109247#p109247"/>
		<title type="html"><![CDATA[I need script for searching]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109247#p109247"><![CDATA[
Hello i need a script which search on <a href="https://darkhelp.uk/" class="postlink">https://darkhelp.uk/</a> when type example !search terms <br>he search on <a href="https://darkhelp.uk/" class="postlink">https://darkhelp.uk/</a> and show result in channel<br><br>Thx for helping<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12298">SlaSerX</a> — Mon Dec 21, 2020 5:06 am</p><hr />
]]></content>
	</entry>
	</feed>
