<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Netocracy &#187; optus php utilities</title>
	<atom:link href="http://www.thenetocracy.com/tags/optus-php-utilities/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thenetocracy.com</link>
	<description>Liberty Prime is go</description>
	<lastBuildDate>Mon, 21 Dec 2009 07:01:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>OptusScrape &#8211; A PHP Class to scrape your optusNet usage data</title>
		<link>http://www.thenetocracy.com/2009/04/24/optusscrape-a-php-class-to-scrape-your-optusnet-usage-data/</link>
		<comments>http://www.thenetocracy.com/2009/04/24/optusscrape-a-php-class-to-scrape-your-optusnet-usage-data/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 07:30:25 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[optus php utilities]]></category>

		<guid isPermaLink="false">http://www.thenetocracy.com/?p=78</guid>
		<description><![CDATA[I spent the day today writing up a php class that would give me an XML page of my optusnet usage. Previously you could hook into two pages they had running to get a text version of your usage details &#8230; <a href="http://www.thenetocracy.com/2009/04/24/optusscrape-a-php-class-to-scrape-your-optusnet-usage-data/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_75" class="wp-caption alignleft" style="width: 361px"><a href="http://www.thenetocracy.com/wp-content/uploads/2009/04/optusscrape.jpg"><img class="size-full wp-image-75" title="optusscrape" src="http://www.thenetocracy.com/wp-content/uploads/2009/04/optusscrape.jpg" alt="OptusScrape" width="351" height="173" /></a><p class="wp-caption-text">OptusScrape</p></div>
<p>I spent the day today writing up a php class that would give me an XML page of my optusnet usage.  Previously you could hook into two pages they had running to get a text version of your usage details &#8211; but in Janurary they finally closed off the service in favor of their flashy advertising. <a href="http://forums.whirlpool.net.au/forum-replies.cfm?t=1124145">Whirlpool link Here</a></p>
<p>Introducing OptusScrape: hosted @  <a title="OptusScrape" href="http://code.google.com/p/optusscrape/">http://code.google.com/p/optusscrape/</a> and released open source for anyone who wants to fiddle and help with ongoing maintence and development.</p>
<p>It has had no testing so far, and is the result of about 5 hours work &#8211; so don&#8217;t expect the world. It will probably fail badly if something goes wrong &#8211; but from my trials today it seems to work well if you have the right requirements.</p>
<p>It uses curl and PHP DOMXPath object to grab the elements. And returns <a href="http://au.php.net/manual/en/class.domnode.php">DOMDocument</a> objects with nice clean XML of the usage data. Thanks for FireBug for quickly getting my the XPath coords.</p>
<p>Next time I have time I will utilize the PHP Curl library, but for now it works well on *nix systems.</p>
<p>Here&#8217;s a snippit of the output and fields it supports.</p>
<p><a href="http://www.thenetocracy.com/wp-content/uploads/2009/04/optusscrape-example.png"><img class="aligncenter size-full wp-image-76" title="optusscrape-example" src="http://www.thenetocracy.com/wp-content/uploads/2009/04/optusscrape-example.png" alt="" width="500" height="191" /></a></p>
<p>Any feedback would be great!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thenetocracy.com/2009/04/24/optusscrape-a-php-class-to-scrape-your-optusnet-usage-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
