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

	<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>2010-04-29T19:02:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2010-04-29T19:02:14-04:00</updated>

		<published>2010-04-29T19:02:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92973#p92973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92973#p92973"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92973#p92973"><![CDATA[
very  simple you porn search<br><br>.chanset #chan +uporn<br><br><div class="codebox"><p>Code: </p><pre><code># Rls: you_porn.tcl v1.0# Date: 29/04/10# Coded by: doggo# Contact: #a.b.inner-sanctum@EFNET##################################### channel flags ##setudef flag upornset userflag "-"set flagop "h"## Script Starts Here - DO NOT EDIT BELOW! #### you porn straight ##set straight "-straight" bind PUB $userflag $straight straightcom proc straightcom {nick uhost hand chan text} {    global botnick   if {![channel get $chan uporn]} {return 0}    puthelp "NOTICE $nick :\0033http://www.youporn.com/search?query=text&amp;type=straight"  }## you porn gay ##set gay "-gay" bind PUB $userflag $gay gaycom proc gaycom {nick uhost hand chan text} {    global botnick    if {![channel get $chan uporn]} {return 0}   puthelp "NOTICE $nick :\0033http://www.youporn.com/search?query=$text&amp;type=gay"  }## you porn cock ##set cock "-cock" bind PUB $userflag $cock cockcom proc cockcom {nick uhost hand chan text} {    global botnick    if {![channel get $chan uporn]} {return 0}   puthelp "NOTICE $nick :\0033http://www.youporn.com/search?query=$text&amp;type=cock"  }putlog "uporn"</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[12:01am] &lt;doggo&gt; -straight boobs[12:01am] -tsara- http://www.youporn.com/search?query=text&amp;type=straight[12:01am] &lt;doggo&gt; -gay bareback[12:01am] -tsara- http://www.youporn.com/search?query=bareback&amp;type=gay[12:01am] &lt;doggo&gt; -cock wank[12:01am] -tsara- http://www.youporn.com/search?query=wank&amp;type=cock</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Thu Apr 29, 2010 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slasla]]></name></author>
		<updated>2009-07-13T10:51:52-04:00</updated>

		<published>2009-07-13T10:51:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89525#p89525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89525#p89525"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89525#p89525"><![CDATA[
up up up :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10636">slasla</a> — Mon Jul 13, 2009 10:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slasla]]></name></author>
		<updated>2009-05-12T10:46:16-04:00</updated>

		<published>2009-05-12T10:46:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88738#p88738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88738#p88738"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88738#p88738"><![CDATA[
Is there anyone that knows how to get results ? I hope i won't get anyone upset if it finds this script inappropiate , it's just for  fun :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10636">slasla</a> — Tue May 12, 2009 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slasla]]></name></author>
		<updated>2009-05-10T11:01:41-04:00</updated>

		<published>2009-05-10T11:01:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88721#p88721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88721#p88721"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88721#p88721"><![CDATA[
Ok, i just edit it , 10x Now i'll wait for the next suggestion to get results :D<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10636">slasla</a> — Sun May 10, 2009 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-05-09T15:07:27-04:00</updated>

		<published>2009-05-09T15:07:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88714#p88714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88714#p88714"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88714#p88714"><![CDATA[
<blockquote class="uncited"><div>Hello Mookie , thank you very much  for your reply, but it seems the script doesn't work for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> have any ideea why ?</div></blockquote><a href="http://forum.egghelp.org/viewtopic.php?t=16819" class="postlink"><strong class="text-strong">Webby</strong></a> can be used to illustrate what is wrong. It will dump the entire contents of the site to the root of your eggdrop as "webby.txt". Using this I've constructed the regexp below to clearly show what is happening.<blockquote class="uncited"><div>&lt;speechles&gt; !webby <a href="http://youporn.com/search?query=porn&amp;search=search" class="postlink">http://youporn.com/search?query=porn&amp;search=search</a> --header --xheader --html<br>&lt;bot&gt; YouPorn ( <a href="http://tinyurl.com/op2jqw" class="postlink">http://tinyurl.com/op2jqw</a> )( 200; application/xhtml+xml; 2612 bytes; 1 redirects )<br>&lt;bot&gt; <strong class="text-strong">Vary</strong>=Host,User-Agent,Accept; <strong class="text-strong">Server</strong>=Apache; <strong class="text-strong">Pragma</strong>=no-cache; <strong class="text-strong">Expires</strong>=Tue, 01 Jan 1980 1:00:00 GMT; <strong class="text-strong">Date</strong>=Sat, 09 May 2009 19:16:05 GMT; <strong class="text-strong">Content-Type</strong>=application/xhtml+xml; <strong class="text-strong">Content-Length</strong>=2612; <strong class="text-strong">Connection</strong>=close; <strong class="text-strong">Cache-Control</strong>=private, max-age=0, must-revalidate; <strong class="text-strong">Cache-Control</strong>=no-cache="set-cookie"; <strong class="text-strong">Accept-Ranges</strong>=bytes<br>&lt;bot&gt; <strong class="text-strong">XHTML 1.0</strong> Transitional//EN<br><br>&lt;speechles&gt; !webby <a href="http://youporn.com/search?query=porn&amp;search=search" class="postlink">http://youporn.com/search?query=porn&amp;search=search</a> --regexp &lt;/div&gt;     &lt;div&gt;(.*?)&lt;a href="/usc2257--<br>&lt;bot&gt; <strong class="text-strong">regexp</strong> capture1 ( WARNING: This website contains explicit adult material.. . You may only enter this website if you are at least 18 years of age, or at least the age of majority in the jurisdiction where you reside or from which you access this website. If you do not meet these requirements, then you do not have permission to use the website.. . Standard data rates may apply. Please consult your carrier for details..<br>&lt;bot&gt; <strong class="text-strong">regexp</strong> capture1 ( . Enter . . Leave . . )</div></blockquote>What's wrong? Notice the "set-cookie" in the cache-control field of the header? Notice the "1 redirects" given by the detail line? Your simply getting the portal entry page you've been redirected to. To have this actually work is pretty straight-forward and simple.<br>Change these two lines:<div class="codebox"><p>Code: </p><pre><code>set form [http::formatQuery $arg search search]set tok [http::geturl http://youporn.com/search?query=$form -timeout $::youporn(timeout)] </code></pre></div>to this and it will work:<div class="codebox"><p>Code: </p><pre><code>set form [http::formatQuery "query" [string map {" " "+"} $arg] user_choice "Enter"]set tok [http::geturl http://youporn.com/search -query $form -headers [list "referer" "http://youporn.com/search?query=$arg" "Set-Cookie" "age check=1"]</code></pre></div>This will at least get you into the site, but for some reason haven't gotten it yet to give me proper search results... It always assumes "", in a bit I'll figure it out though.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat May 09, 2009 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slasla]]></name></author>
		<updated>2009-05-09T14:54:52-04:00</updated>

		<published>2009-05-09T14:54:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88713#p88713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88713#p88713"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88713#p88713"><![CDATA[
Hello Mookie , thank you very much  for your reply, but it seems the script doesn't work for me :( have any ideea why ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10636">slasla</a> — Sat May 09, 2009 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Maiki]]></name></author>
		<updated>2009-05-07T14:14:47-04:00</updated>

		<published>2009-05-07T14:14:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88690#p88690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88690#p88690"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88690#p88690"><![CDATA[
Since that is the script i made, i couldn't stand not to help ^-^<br><div class="codebox"><p>Code: </p><pre><code>### YouTube Searching script. v0.1### Made by Mookie### Contact me at Efnet for more information or suggestions### V0.3 Fixed + added spam protectionpackage require http### Settings ###set youporn(timeout) "600000" ;# Youtube geturl timeout. (better leave this default)set youporn(results) "5" ;# Results to displayset youporn(trigger) "!youporn" ;# Search triggerset youporn(spam) "10" ;# Spam protection in seconds########################################################### Don't edit below unless you know what you're doing. ###########################################################bind pub - $::youporn(trigger) youpornproc youporn {nick uhost hand chan arg} {if {[info exists ::checks($nick)] &amp;&amp; ([clock seconds] - $::checks($nick)) &lt; $::youporn(spam)} { sendmsg $chan "Esti spammer muist ? :-) grija flacau"; return }set ::checks($nick) [clock seconds]if {$arg == ""} { putmsg $nick "Utilizare corecta: $::youporn(trigger) cuvinte-cheie"; return }set form [http::formatQuery $arg search search]set tok [http::geturl http://youporn.com/search?query=$form -timeout $::youporn(timeout)]set data [http::data $tok]http::cleanup $tokset a "0"while {[regexp -- {^.*?&lt;h1&gt;&lt;a href=\"/watch/(.*?)\"&gt;(.+?)&lt;/a&gt;&lt;/h1&gt;(.*)$} $data -&gt; number title data]} {if {$a == $::youporn(results)} { break }sendmsg $chan "\[Title: $title Link:http://youporn.com/watch/$number\]"incr a}if {![info exists title]} { sendmsg $chan "\002Error:\002 Nimic gasit pentru '$arg'" }}proc "sendmsg" { target message } {sputraw "PRIVMSG [string tolower $target] :$message"}proc "sputraw" { text } {set text [string trim $text]putdccraw 0 [string length $text\n] $text\n}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9009">Maiki</a> — Thu May 07, 2009 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slasla]]></name></author>
		<updated>2009-05-05T08:53:41-04:00</updated>

		<published>2009-05-05T08:53:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88674#p88674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88674#p88674"/>
		<title type="html"><![CDATA[A kind of youtube search script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88674#p88674"><![CDATA[
Hello, i tried to modify a youtube tcl script to show results from different site , and it's not quite working , this is what i got <div class="codebox"><p>Code: </p><pre><code>### YouTube Searching script. v0.1### Made by Mookie### Contact me at Efnet for more information or suggestions### V0.3 Fixed + added spam protectionpackage require http### Settings ###set youporn(timeout) "600000";# Youtube geturl timeout. (better leave this default)set youporn(results) "5";# Results to displayset youporn(trigger) "!youporn";# Search triggerset youporn(spam) "10";# Spam protection in seconds########################################################### Don't edit below unless you know what you're doing. ###########################################################bind pub - $::youporn(trigger) youpornproc youporn {nick uhost hand chan arg} {if {[info exists ::checks($nick)] &amp;&amp; ([clock seconds] - $::checks($nick)) &lt; $::youporn(spam)} { sendmsg $chan "Esti spammer muist ? :-) grija flacau"; return }set ::checks($nick) [clock seconds]if {$arg == ""} { putmsg $nick "Utilizare corecta: $::youporn(trigger) cuvinte-cheie"; return }set form [http::formatQuery $arg search search]set tok [http::geturl http://www.youporn.com/results?query=&amp;$form -timeout $::youporn(timeout)]set data [http::data $tok]http::cleanup $tokset a "0"while {[regexp -- {&lt;hl&gt;&lt;a href="/watch/.*?"&gt;(.*?) &lt;/a&gt;(.*)$} $data -&gt; number title data]} {if {$a == $::youporn(results)} { break }sendmsg $chan "\[Title: $title Link:http://youporn.com$number\]"incr a}if {![info exists title]} { sendmsg $chan "\002Error:\002 Nimic gasit pentru '$arg'" }}proc "sendmsg" { target message } {sputraw "PRIVMSG [string tolower $target] :$message"}proc "sputraw" { text } {set text [string trim $text]putdccraw 0 [string length $text\n] $text\n}</code></pre></div>You can see the orignal script here -&gt; <a href="http://downhill.ro/youtube.tc" class="postlink">http://downhill.ro/youtube.tc</a>l<br><br>Thank you in advance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10636">slasla</a> — Tue May 05, 2009 8:53 am</p><hr />
]]></content>
	</entry>
	</feed>
