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

	<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>2005-12-04T20:39:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-04T20:39:58-04:00</updated>

		<published>2005-12-04T20:39:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57958#p57958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57958#p57958"/>
		<title type="html"><![CDATA[parse website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57958#p57958"><![CDATA[
then simply apply <em class="text-italics">regexp -all</em> or call [regexp] in a loop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Dec 04, 2005 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Koepi]]></name></author>
		<updated>2005-12-04T14:57:56-04:00</updated>

		<published>2005-12-04T14:57:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57944#p57944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57944#p57944"/>
		<title type="html"><![CDATA[parse website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57944#p57944"><![CDATA[
Thx for your answer. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Until this time i parse website line by line<br><br>The website content is:<br><div class="codebox"><p>Code: </p><pre><code>&lt;table border="0" cellpadding="0" cellspacing="0" width="600"&gt;  &lt;tbody&gt;&lt;tr&gt;  &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;&lt;td class="head" colspan="2"&gt;TITLE1&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;  &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="1"&gt;&lt;/td&gt;&lt;td class="head" colspan="2"&gt;DATE&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt; &lt;td colspan="3"&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="24" width="1"&gt;&lt;/td&gt; &lt;/tr&gt;    &lt;tr&gt;  &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="1"&gt;&lt;/td&gt;&lt;td class="head" colspan="2"&gt;TITLE2&lt;/td&gt;   &lt;/tr&gt;  &lt;tr&gt;&lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;&lt;td class="fliesstxt" height="1"&gt;TEXTTEXTTEXTTEXTTEXT&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt; &lt;td colspan="3"&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="24" width="1"&gt;&lt;/td&gt; &lt;/tr&gt;    &lt;tr&gt;  &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="1"&gt;&lt;/td&gt;&lt;td class="head" colspan="2"&gt;TITLE3&lt;/td&gt;   &lt;/tr&gt;  &lt;tr&gt;&lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;&lt;td class="fliesstxt" height="1"&gt;TEXTTEXTTEXTTEXTTEXT&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt; &lt;td colspan="3"&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="24" width="1"&gt;&lt;/td&gt; &lt;/tr&gt;    &lt;tr&gt;  &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="1"&gt;&lt;/td&gt;&lt;td class="head" colspan="2"&gt;TITLE4&lt;/td&gt;   &lt;/tr&gt;  &lt;tr&gt;&lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;&lt;td class="fliesstxt" height="1"&gt;TEXTTEXTTEXTTEXTTEXT&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt; &lt;td colspan="3"&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="24" width="1"&gt;&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="4" width="10"&gt;&lt;/td&gt; &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="580"&gt;&lt;/td&gt; &lt;td&gt;&lt;img src="woche_dateien/p_0.gif" alt="" border="0" height="1" width="10"&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;</code></pre></div>i want the content in this order:<br><br>TITLE1<br>DATE<br>TITLE2<br>TEXT<br>TEXT<br>TEXT<br>TEXT<br>TEXT<br>TITLE3<br>TEXT<br>TEXT<br>TEXT<br>TEXT<br>TEXT<br>TITLE4<br>TEXT<br>TEXT<br>TEXT<br>TEXT<br>TEXT<br><br>I can grab the title and date with:<div class="codebox"><p>Code: </p><pre><code>   set data [http::geturl $url]   set data2 [http::data $data]   http::cleanup $data   foreach line [split $data2 \n] {    if {[regexp -nocase {&lt;td class="head" colspan="2"&gt;(.*?)&lt;/td&gt;} $line a ]} {   puthelp "PRIVMSG $chan :$a"</code></pre></div>but now i dont'n know how to integrate<div class="codebox"><p>Code: </p><pre><code>regexp {&lt;td.*?&gt;(.*?)&lt;br&gt;} $string -&gt; text</code></pre></div>My Script search the content line by line so he can't find &lt;td.*?&gt;(.*?)&lt;br&gt;.<br><br>hope my code is not too ugly ...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3754">Koepi</a> — Sun Dec 04, 2005 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-03T16:07:47-04:00</updated>

		<published>2005-12-03T16:07:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57930#p57930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57930#p57930"/>
		<title type="html"><![CDATA[parse website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57930#p57930"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regexp {&lt;td.*?&gt;(.*?)&lt;br&gt;} $string -&gt; text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Dec 03, 2005 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Koepi]]></name></author>
		<updated>2005-12-03T15:20:37-04:00</updated>

		<published>2005-12-03T15:20:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57927#p57927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57927#p57927"/>
		<title type="html"><![CDATA[parse website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57927#p57927"><![CDATA[
Hi,<br><br>i like to parse a website. The Content i need is between &lt;td class="txt" height="1"&gt; and &lt;br&gt;<br><div class="codebox"><p>Code: </p><pre><code>&lt;td class="txt" height="1"&gt;TEXTTEXTTEXTTEXTTEXTTEXT&lt;br&gt;</code></pre></div>Can someone explain me how i grab the lines?<br><br>greets Koepi<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3754">Koepi</a> — Sat Dec 03, 2005 3:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
