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

	<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>2007-12-02T14:05:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[]x[]]></name></author>
		<updated>2007-12-02T14:05:19-04:00</updated>

		<published>2007-12-02T14:05:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78918#p78918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78918#p78918"/>
		<title type="html"><![CDATA[What Pulse script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78918#p78918"><![CDATA[
OMG its working, thank you really much man. Now i can continue to fiddle and hopefully finish this script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> a bit more.<br><br>Thanks again and i really appreciate this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7216">]x[</a> — Sun Dec 02, 2007 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2007-12-02T06:41:10-04:00</updated>

		<published>2007-12-02T06:41:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78910#p78910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78910#p78910"/>
		<title type="html"><![CDATA[What Pulse script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78910#p78910"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !test pulse_getproc pulse_get {n u h c t} {  set x [::http::geturl http://whatpulse.org/api/user.php?UserID=223348]  set data [::http::data $x]  regexp -- {&lt;AccountName&gt;([^&lt;]+)} $data {} AccountName  regexp -- {&lt;Country&gt;([^&lt;]+)} $data {} Country  regexp -- {&lt;DateJoined&gt;([^&lt;]+)} $data {} DateJoined  puthelp "privmsg $c :AccountName: $AccountName"     puthelp "privmsg $c :Country: $Country"  puthelp "privmsg $c :DateJoined: $DateJoined"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Sun Dec 02, 2007 6:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]x[]]></name></author>
		<updated>2007-12-01T21:43:23-04:00</updated>

		<published>2007-12-01T21:43:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78897#p78897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78897#p78897"/>
		<title type="html"><![CDATA[What Pulse script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78897#p78897"><![CDATA[
Trying to get this old Whatpulse script working again with the new web API but i can't seem to be able to fix it. The problem is that the old API was a txt output and the new one is an XML. This is the site where it needs to get  the data from :<br><a href="http://whatpulse.org/api/user.php?UserID=223348" class="postlink">http://whatpulse.org/api/user.php?UserID=223348</a><br><br>This is the original version of the script -&gt;   <a href="http://pastebin.com/f35b6b778" class="postlink">http://pastebin.com/f35b6b778</a><br>Then i fiddled a bit with info from this forum and tutorials. I got it to to read the xml file and output something. But i can't seem to refine the output.<br><br>Working script till now -&gt; <a href="http://pastebin.com/m34521008" class="postlink">http://pastebin.com/m34521008</a><br>Which outputs this -&gt; <a href="http://pastebin.com/m53c44d46" class="postlink">http://pastebin.com/m53c44d46</a><br>But i can't figure out how i can get the output ^^ in to a nice format so i can deliver it to IRC how i want.<br><br>And below here is my try in getting something but that only messed up me script and makes it output errors in DCC instead of some nice output.. <br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !test pulse_getproc pulse_get {n u h c t} {  set x [::http::geturl http://whatpulse.org/api/user.php?UserID=223348]   foreach line [split [::http::data $x] \n] {        regsub -line {&lt;AccountName&gt;} set $AccountName {} AccountName    regsub -line {&lt;Country&gt;} set $Country {} Country    regsub -line {&lt;DateJoined&gt;} set $DateJoined {} DateJoined    regsub -line {&lt;Homepage&gt;} set $Homepage {} Homepage    regsub -line {&lt;LastPulse&gt;} set $LastPulse {} LastPulse    regsub -line {&lt;Pulses&gt;} set $Pulses {} Pulses    regsub -line {&lt;TotalKeyCount&gt;} set $TotalKeyCount {} TotalKeyCount    regsub -line {&lt;TotalMouseClicks&gt;} set $TotalMouseClicks {} TotalMouseClicks    regsub -line {&lt;AvKeysPerPulse&gt;} set $AvKeysPerPulse {} AvKeysPerPulse    regsub -line {&lt;AvClicksPerPulse&gt;} set $AvClicksPerPulse {} AvClicksPerPulse    regsub -line {&lt;AvKPS&gt;} set $AvKPS {} AvKPS    regsub -line {&lt;AvCPS&gt;} set $AvCPS {} AvCPS    regsub -line {&lt;Rank&gt;} set $Rank {} Rank    regsub -line {&lt;TeamID&gt;} set $TeamID {} TeamID    regsub -line {&lt;TeamName&gt;} set $TeamName {} TeamName    regsub -line {&lt;TeamMembers&gt;} set $TeamMembers {} TeamMembers    regsub -line {&lt;TeamKeys&gt;} set $TeamKeys {} TeamKeys    regsub -line {&lt;TeamClicks&gt;} set $TeamClicks {} TeamClicks    regsub -line {&lt;TeamDescription&gt;} set $TeamDescription {} TeamDescription    regsub -line {&lt;TeamDateFormed&gt;} set $TeamDateFormed {} TeamDateFormed    puthelp "privmsg $c :AccountName"       puthelp "privmsg $c :Country"    puthelp "privmsg $c :DateJoined"    puthelp "privmsg $c :Homepage"    puthelp "privmsg $c :LastPulse"    puthelp "privmsg $c :Pulses"    puthelp "privmsg $c :TotalKeyCount"    puthelp "privmsg $c :TotalMouseClicks"    puthelp "privmsg $c :AvKeysPerPulse"    puthelp "privmsg $c :AvClicksPerPulse"    puthelp "privmsg $c :AvKPS"    puthelp "privmsg $c :AvCPS"    puthelp "privmsg $c :Rank"    puthelp "privmsg $c :TeamID"    puthelp "privmsg $c :TeamName"    puthelp "privmsg $c :TeamMembers"    puthelp "privmsg $c :TeamKeys"    puthelp "privmsg $c :TeamClicks"    puthelp "privmsg $c :TeamDescription"    puthelp "privmsg $c :TeamDateFormed"  }}</code></pre></div>I'm a total noob and i tried to read on about regsub an regexp the entire day but i still don't get any result so if anyone is able to help me, it would be greatly appreciated. Or gives me a few pointers in the right direction with how to separate each data field into its own variable.<br><br>Greetz ]x[<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7216">]x[</a> — Sat Dec 01, 2007 9:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
