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

	<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>2009-12-20T07:29:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Tumpero]]></name></author>
		<updated>2009-12-20T07:29:10-04:00</updated>

		<published>2009-12-20T07:29:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91384#p91384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91384#p91384"/>
		<title type="html"><![CDATA[livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91384#p91384"><![CDATA[
Any luck for this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10034">Tumpero</a> — Sun Dec 20, 2009 7:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DaRkOoO]]></name></author>
		<updated>2009-10-26T18:24:43-04:00</updated>

		<published>2009-10-26T18:24:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90643#p90643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90643#p90643"/>
		<title type="html"><![CDATA[livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90643#p90643"><![CDATA[
It doesn't work..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10236">DaRkOoO</a> — Mon Oct 26, 2009 6:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Behemoth]]></name></author>
		<updated>2009-10-26T12:49:08-04:00</updated>

		<published>2009-10-26T12:49:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90642#p90642</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90642#p90642"/>
		<title type="html"><![CDATA[livescore.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90642#p90642"><![CDATA[
hello.. <br>can the above posted script ( livescore.tcl ) be translated in English plz ?<br><br><br>thnkx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9930">Behemoth</a> — Mon Oct 26, 2009 12:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2009-10-24T15:16:22-04:00</updated>

		<published>2009-10-24T15:16:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90621#p90621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90621#p90621"/>
		<title type="html"><![CDATA[livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90621#p90621"><![CDATA[
some update for this script? actually no found.<br><br>thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sat Oct 24, 2009 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2008-11-27T14:54:04-04:00</updated>

		<published>2008-11-27T14:54:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85982#p85982</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85982#p85982"/>
		<title type="html"><![CDATA[livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85982#p85982"><![CDATA[
any chance of getting a script that does other sports like nba mlb nfl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Thu Nov 27, 2008 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[moff]]></name></author>
		<updated>2008-11-26T15:44:04-04:00</updated>

		<published>2008-11-26T15:44:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85974#p85974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85974#p85974"/>
		<title type="html"><![CDATA[livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85974#p85974"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#################################################################################                                                                              ##      :::[  T h e   R u s s i a n   E g g d r o p  R e s o u r c e  ]:::      ##    ____                __                                                    ##   / __/___ _ ___ _ ___/ /____ ___   ___      ___   ____ ___ _     ____ __ __ ##  / _/ / _ `// _ `// _  // __// _ \ / _ \    / _ \ / __// _ `/    / __// // / ## /___/ \_, / \_, / \_,_//_/   \___// .__/ __ \___//_/   \_, / __ /_/   \___/  ##      /___/ /___/                 /_/    /_/           /___/ /_/              ##                                                                              ##################################################################################                                                                              ## livescore.tcl 2.0                                                            ##                                                                              ## Author: Stream@Rusnet &lt;stream@eggdrop.org.ru&gt;                                ##                                                                              ## Official support: irc.eggdrop.org.ru @ #eggdrop                              ##                                                                              #################################################################################if {![info exists egglib(ver)]} {putlog "************************************************"putlog "             egglib_pub NOT FOUND !"putlog "   Download last version of egglib_pub here:"putlog "  http://eggdrop.org.ru/scripts/egglib_pub.zip"putlog "************************************************"die}if {[expr {$egglib(ver) &lt; 1.4}]} {putlog "************************************************"putlog "    YOUR VERSION OF egglib_pub IS TOO OLD !"putlog "   Download last version of egglib_pub here:"putlog "  http://eggdrop.org.ru/scripts/egglib_pub.zip"putlog "************************************************"putlog " version installed : $egglib(ver)"putlog " version required: 1.4"die}#################################################namespace eval ls {}setudef flag nopubls#################################################bind pub - !ls::ls::pub_lsbind pub - !score::ls::pub_lsbind pub - !livescore::ls::pub_lsbind msg - !ls::ls::msg_lsbind msg - !score::ls::msg_lsbind msg - !livescore::ls::msg_ls#################################################foreach p [array names ls *] { catch {unset ls($p)} }#max results per public queryset ls(maxres)10set ls(timeout) 20set ls(debug) 1set ls(use_proxy) 0set ls(proxy_host) "proxy1.bezeqint.net"set ls(proxy_port) 3128###################################################### DON'T CHANGE ANYTHING BELOW THIS LINE ######################################################set ls(ver) "2.0"set ls(authors)"Stream@RusNet &lt;stream@eggdrop.org.ru&gt;"set ls(agent)"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)"#################################################proc ::ls::pub_ls { nick uhost hand chan args } {if {[channel get $chan nopubls]} returnset args [string tolower [string trim $args]]if {[llength [split [lindex $args 0]]] &gt; 1 || [llength [split [lindex $args 0]]] == 0} {set args [split [lindex $args 0]]}if {[llength $args] &lt; 1} {::egglib::outn $nick "Use !livescore \[-country\] &lt;search_mask&gt;. Mask can contain '*' and '?', search will be performed in command names and scores."; return}::ls::ls $nick $uhost $hand $chan $args}proc ::ls::msg_ls { nick uhost hand args } {set args [string tolower [string trim $args]]if {[llength [split [lindex $args 0]]] &gt; 1 || [llength [split [lindex $args 0]]] == 0} {set args [split [lindex $args 0]]}if {[llength $args] &lt; 1} {::egglib::outn $nick "Use !livescore \[-country\] &lt;search_mask&gt;. Mask can contain '*' and '?', search will be performed in command names and scores."; return}::ls::ls $nick $uhost $hand $nick $args}#################################################proc ::ls::ls { nick uhost hand chan args } { global lsif {[info exists ls(host,$uhost)]} {::egglib::outn $nick "Please wait till last query will be finished..."; return}if {[llength [split [lindex $args 0]]] &gt; 1 || [llength [split [lindex $args 0]]] == 0} {set args [split [lindex $args 0]]}if {[string range [lindex $args 0] 0 0] == "-"} {set country [string range [lindex $args 0] 1 end]set mask [lrange $args 1 end]} else {set country "ukraine"set mask $args}::egglib::log $chan $nick "ls" "$country $mask"if {[string range $mask 0 0] != "*"} {set mask "*$mask"}if {[string range $mask end end] != "*"} {set mask "$mask\*"}set ls(host,$uhost) [list $country $mask]set url "http://www.livescore.com/default.dll?page=$country"set id [::egglib::http_init "::ls::ls_"]if {$ls(use_proxy)} {::egglib::http_set_proxy $id $ls(proxy_host) $ls(proxy_port)}::egglib::http_set_timeout $id $ls(timeout)::egglib::http_get $id $url [list $nick $chan $uhost]}proc ::ls::ls_on_data { id html nick chan uhost } {global ls  if {$ls(debug)} {putlog "\[ls\] callback executed... analyzing data..."}  regsub -all -nocase -- &lt;tr $html \n&lt;tr html  #::egglib::writedata "debugls.htm" [list $html]foreach line [split $html \n] {if {[regexp -nocase -- {&lt;html&gt;.*robots.*refresh.*URL\=(.*?)\".*action\=\"(.*?)\".*value\=\"(.*?)\"} $line garb url posturl sid]} {putlog "antibot check found. redirecting to $url &amp; POSTing to $posturl (params sid=$sid)"set url "http://www.livescore.com$url"set id [::egglib::http_init "::ls::ls1_"]if {$ls(use_proxy)} {::egglib::http_set_proxy $id $ls(proxy_host) $ls(proxy_port)}::egglib::http_set_timeout $id 1::egglib::http_get $id $url [list $nick $chan $uhost]set url "http://www.livescore.com$posturl"set param "sid=$sid"set id [::egglib::http_init "::ls::lspost_"]if {$ls(use_proxy)} {::egglib::http_set_proxy $id $ls(proxy_host) $ls(proxy_port)}::egglib::http_set_timeout $id $ls(timeout)::egglib::http_set_method $id "POST"::egglib::http_post $id $url $param [list $nick $chan $uhost]break}}if {$ls(debug)} {putlog "\[ls\] html parsed"}}proc ::ls::ls_on_error { id nick chan uhost } {global lscatch {unset ls(host,$uhost)}if {$ls(debug)} {putlog "\[ls\] connection timed out"}if {$nick == " "} {return}::egglib::out $nick $chan "cant connect to livescore.com..."}proc ::ls::ls1_on_data { id html nick chan uhost } {  ::egglib::writedata "debugls1.htm" [list $html]if {$ls(debug)} {putlog "\[ls1\] callback executed! Something is wrong..."}}proc ::ls::ls1_on_error { id nick chan uhost } {global lsif {$ls(debug)} {putlog "\[ls1\] connection timed out - OK"}}proc ::ls::lspost_on_data { id html nick chan uhost } {global ls  if {$ls(debug)} {putlog "\[lspost\] callback executed... analyzing data..."}  #::egglib::writedata "debugpost.htm" [list $html]set moved 0foreach line [split $html \n] {if {[string match "HTTP* 302 Object Moved" $line]} {set moved 1} elseif {$moved == 1} {if {[regexp -nocase -- {^Location\:\ (.*?)$} $line garb url]} {if {$ls(debug)} {putlog "recieved HTTP 302 Object Moved, new location: $url"}set url "http://www.livescore.com$url"set id [::egglib::http_init "::ls::ls2_"]if {$ls(use_proxy)} {::egglib::http_set_proxy $id $ls(proxy_host) $ls(proxy_port)}::egglib::http_set_timeout $id $ls(timeout)::egglib::http_get $id $url [list $nick $chan $uhost]}}}if {$ls(debug)} {putlog "\[lspost]: html parsed"}}proc ::ls::lspost_on_error { id nick chan uhost } {global lscatch {unset ls(host,$uhost)}if {$ls(debug)} {putlog "\[lspost\] connection timed out"}if {$nick == " "} {return}::egglib::out $nick $chan "cant connect to livescore.com..."}proc ::ls::ls2_on_data { id html nick chan uhost } {global lscatch {set country [lindex $ls(host,$uhost) 0]set mask [lrange $ls(host,$uhost) 1 end]#putlog "country = $country , mask = $mask"unset ls(host,$uhost)}if {$ls(debug)} {putlog "\[ls2\] callback executed... analyzing data..."}regsub -all -nocase -- &lt;tr $html \n&lt;tr html#::egglib::writedata "debugls2.htm" [list $html]if {$nick != $chan} {set nick ""}set cfound 0set cts ""set title ""set tshown 0set timedate ""set tdshown 0set resshown 0set restotal 0foreach line [split $html \n] {if {$cfound == 0} {if {[regexp -nocase -- {&lt;tr&gt;&lt;td.*&gt;&lt;img.*name\=\"i(.*)\"\ alt.*&gt;&lt;a\ href\=\"/default.dll\?page\=([a-z]+)\"\ on.*&gt;(.*?)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;} $line garb cnum page ctr]} {if {$cnum &gt; 4} {if {$cts == ""} {set cts $page} else {set cts "$cts\, $page"}if {$page == $country} {set cfound 1}}} elseif {[regexp -nocase -- {&lt;tr&gt;&lt;td.*&gt;&lt;img.*name\=\"i(.*)\"\ alt.*&gt;&lt;a\ href\=\"/default.dll\?page\=([a-z]+)\"\ class\=\"selected\"&gt;(.*?)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;} $line garb cnum page ctr]} {if {$cnum &gt; 4} {if {$cts == ""} {set cts $page} else {set cts "$cts\, $page"}if {$page == $country} {set cfound 1}}}if {[string match "&lt;tr&gt;&lt;td colspan=\"4\" height=\"1\"&gt;&lt;/td&gt;&lt;/tr&gt;" $line] &amp;&amp; $cfound == 0} {::egglib::out $nick $chan "Available values: $cts"return}}if {[regexp -nocase -- {^&lt;tr.*&gt;&lt;td\ class\=\"title\".*&gt;\ \;&lt;b&gt;(.*?)&lt;/b&gt;\ \-\ (.*?)&lt;/td&gt;&lt;/tr&gt;} $line garb country league]} {set title "\002$country\002 - $league"set tshown 0set tdshown 0set timedate ""#putlog "title = $title"continue} elseif {[regexp -nocase -- {^&lt;tr.*&gt;&lt;td.*&gt;\ \;(.*?)&lt;/td&gt;&lt;td.*&gt;(.*?)\ \;&lt;/td&gt;&lt;/tr&gt;$} $line garb tm dt]} {if {$tm == ""} {set timedate $dt} else {set timedate "$tm, $dt"}set tdshown 0#putlog "timedate = $timedate"continue} elseif {![regexp -nocase -- {&lt;tr.*&gt;&lt;td.*&gt;\ \;(.*?)&lt;/td&gt;&lt;td.*&gt;(.*?)&lt;/td&gt;.*&lt;a.*&gt;(.*?)&lt;/a&gt;&lt;/td&gt;&lt;td.*&gt;(.*?)&lt;/td&gt;} $line garb state team1 score team2]} {if {![regexp -nocase -- {&lt;tr.*&gt;&lt;td.*&gt;\ \;(.*?)&lt;/td&gt;&lt;td.*&gt;(.*?)&lt;/td&gt;&lt;td.*&gt;(.*?)&lt;/td&gt;&lt;td.*&gt;(.*?)&lt;/td&gt;} $line garb state team1 score team2]} {continue}}regsub -nocase {^(.*?)\-(.*?)$} $score {\1-\2} scoreset res "($state) $team1 $score $team2"if {[string match $mask [string tolower $res]]} {#putlog "res = $res"incr restotalif {$restotal &gt; $ls(maxres) &amp;&amp; $nick != $chan} {continue}incr resshownif {$tshown == 0} {::egglib::out $nick $chan $titleset tshown 1}if {$tdshown == 0} {::egglib::out $nick $chan $timedateset tdshown 1}::egglib::out $nick $chan $res}}if {$ls(debug)} {putlog "\[ls2\] html parsed"}if {$resshown &lt; $restotal} {::egglib::out $nick $chan "Showed $resshown from $restotal (full list will be available by command to PM)."}}proc ::ls::ls2_on_error { id nick chan uhost } {global lscatch {unset ls(host,$uhost)}if {$ls(debug)} {putlog "\[ls2\] connection timed out"}if {$nick == " "} {return}::egglib::out $nick $chan "cant connect to livescore.com..."}putlog "livescore.tcl v$ls(ver) by $ls(authors) loaded"</code></pre></div>found this one, but i dont get output<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10076">moff</a> — Wed Nov 26, 2008 3:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2008-08-11T02:40:10-04:00</updated>

		<published>2008-08-11T02:40:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84545#p84545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84545#p84545"/>
		<title type="html"><![CDATA[Re: livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84545#p84545"><![CDATA[
<blockquote class="uncited"><div>any idea about soccer score tcl??<br>ehmm...<br>can auto post to channel the update score.<br>take the score from livescore.com<br>or other web.</div></blockquote>hmmm interesting...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Mon Aug 11, 2008 2:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heroes]]></name></author>
		<updated>2008-08-10T03:40:46-04:00</updated>

		<published>2008-08-10T03:40:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84535#p84535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84535#p84535"/>
		<title type="html"><![CDATA[livescore tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84535#p84535"><![CDATA[
any idea about soccer score tcl??<br>ehmm...<br>can auto post to channel the update score.<br>take the score from livescore.com<br>or other web.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9510">heroes</a> — Sun Aug 10, 2008 3:40 am</p><hr />
]]></content>
	</entry>
	</feed>
