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

	<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>2008-04-05T00:39:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2008-04-05T00:39:17-04:00</updated>

		<published>2008-04-05T00:39:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82163#p82163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82163#p82163"/>
		<title type="html"><![CDATA[Data from web.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82163#p82163"><![CDATA[
Thanks alot speechless I will try your code too but this worked:<br><div class="codebox"><p>Code: </p><pre><code>regsub -all "&lt;div style=\"float:left;padding-left:10px;\"&gt;" $info " " info</code></pre></div>The reason it was'nt working was because I was'nt putting it into the right place, but I will put your one too, that's short and better for div* type of errors..<br><br>Thanks speechless <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>peace <br>death<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Sat Apr 05, 2008 12:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-04-05T00:36:26-04:00</updated>

		<published>2008-04-05T00:36:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82162#p82162</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82162#p82162"/>
		<title type="html"><![CDATA[Data from web.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82162#p82162"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regsub -all -- {&lt;div .*?&gt;} $body "" bodyregsub -all -- {&lt;/div&gt;} $body " " body</code></pre></div>perhaps something like this?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br><br>Not sure if by 'error' you mean: 1) just removing the html tags themselves, or 2) removing what is between the &lt;div&gt;...&lt;/div&gt;<br><br>So the code above simply meets condition 1 above. Place it before this line: regsub -all {&lt;.+?&gt;} $body "" body <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Apr 05, 2008 12:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2008-04-04T23:23:37-04:00</updated>

		<published>2008-04-04T23:23:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82161#p82161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82161#p82161"/>
		<title type="html"><![CDATA[Data from web.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82161#p82161"><![CDATA[
Thanks alot, it works like a charm.. Thank you soo much. but I did'nt understand what you meant by your other suggestion, the 90 seconds thing.. can you tell me more about it if something is there, becuase that has no issues <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>one more thing to ask you how to eliminate this type of error through regsub:<br><div class="codebox"><p>Code: </p><pre><code>[08:26] &lt;Cricket&gt; &lt;div style="float:left;padding-left:10px;"&gt;Developed by David Kendix&lt;/div&gt;Last updated: Mar 22, 2008&lt;/div&gt;&lt;div class="rankings_bottom_text"&gt;* The weighting of 'matches' is reduced over time so does not reflect the full number of matches played in the</code></pre></div>I tried this but did'nt work:<br><div class="codebox"><p>Code: </p><pre><code>regsub -all "&lt;div style=\"float:left;padding-left:10px;\"&gt;" $info " " info</code></pre></div>Thanks<br><br>peace<br>death<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Apr 04, 2008 11:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-04-03T23:43:33-04:00</updated>

		<published>2008-04-03T23:43:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82152#p82152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82152#p82152"/>
		<title type="html"><![CDATA[Data from web.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82152#p82152"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regsub -all -- {&lt;script.*?&gt;.*?&lt;/script&gt;} $body "" body</code></pre></div>It's the javascript. Strip it out as well with the above regsub. Place this regsub anywhere before this line: <em class="text-italics">regsub -all {&lt;.+?&gt;} $body "" body</em><br>also on loading that page, appears it refreshes at 60 seconds.<div class="codebox"><p>Code: </p><pre><code>regsub -all {This page automatically refreshes every 90 seconds.} $body "" body </code></pre></div>You probably need to alter this as well. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Apr 03, 2008 11:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2008-04-03T23:22:24-04:00</updated>

		<published>2008-04-03T23:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82151#p82151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82151#p82151"/>
		<title type="html"><![CDATA[Data from web.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82151#p82151"><![CDATA[
Hi guys, while using this proc in one of my script I am getting an error and I am confused how to get rid of it. I've tried all the possible ways  I knew but I think I can't make it done without you guys help. Here is the code:<br><div class="codebox"><p>Code: </p><pre><code>  proc your_callbackproc {sock} {    global url nick2msg    putlog "Getting scores on the request of $nick2msg"    set headers [egghttp:headers $sock]    set body [egghttp:data $sock]    regsub -all "\n" $body "" body    regsub -all -nocase {&lt;br&gt;} $body "&lt;br&gt;\n" body    regsub -all {&lt;b&gt;} $body "\n\002" body    regsub -all {&lt;/b&gt;} $body "\002" body    regsub -all {Cricinfo} $body "\00304#Cricket\003 @ \00304Undernet\003" body    regsub -all {at } $body " at " body    regsub -all {World Cup Warm-up Matches} $body "\00304,01World Cup Warm-up Matches\003" body    regsub -all {&lt;p class="blueBackHeading"&gt;} $body "\n\00300,12" body    regsub -all {&lt;/p&gt;} $body "\003\n" body    regsub -all { } $body "" body    regsub -all {This page automatically refreshes every 90 seconds.} $body "" body    regsub -all {Scorecard} $body "" body    regsub -all {Desktop scorecard} $body "" body    regsub -all {Bulletin} $body "" body    regsub -all {3D Animation} $body "" body    regsub -all {Match home} $body "" body    regsub -all {\|} $body {} body    regsub -all {&lt;.+?&gt;} $body "" body    [msgnick $body]}</code></pre></div>The error I am getting is:<br><div class="codebox"><p>Code: </p><pre><code>[08:20] &lt;Cricket`-&gt;  #Cricket @ Undernet - Desktop Scoreboard        function init(){if(parent.adjustIFrameSize) parent.adjustIFrameSize(window);//alert(parent.adjustIFrameSize);}//window.onload = init;        [08:20] &lt;Cricket`-&gt;    Current time:   03:20 GMT, Fri Apr 04, 2008</code></pre></div>The site I am using to fetch the data from is:<br><div class="codebox"><p>Code: </p><pre><code>set url "http://content-pak.cricinfo.com/ci/engine/current/match/scores/liveframe.html"</code></pre></div>Rest everything is working fine, below that error I am getting what I should, it works but just that function bla bla thingie bugs the crap out of me.<br><br>your help will be appreciated.<br><br>Thanks and peace<br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Thu Apr 03, 2008 11:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
