<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: A little programming project</title>
	<atom:link href="http://it.gen.nz/2008/09/21/a-little-programming-project/feed/" rel="self" type="application/rss+xml" />
	<link>http://it.gen.nz/2008/09/21/a-little-programming-project/</link>
	<description>Writings on technology and society from Wellington, New Zealand</description>
	<lastBuildDate>Wed, 08 Feb 2012 04:57:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: name</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-5520</link>
		<dc:creator>name</dc:creator>
		<pubDate>Wed, 29 Jul 2009 09:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-5520</guid>
		<description>Nise site,</description>
		<content:encoded><![CDATA[<p>Nise site,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: it.gen.nz &#187; A little programming project - part 3</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-1095</link>
		<dc:creator>it.gen.nz &#187; A little programming project - part 3</dc:creator>
		<pubDate>Sun, 19 Oct 2008 05:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-1095</guid>
		<description>[...] few weeks ago I blogged about writing a little program to make my life easier. (The entries are here and here.) In summary this program automates the messy but easy administrative task of editing [...]</description>
		<content:encoded><![CDATA[<p>[...] few weeks ago I blogged about writing a little program to make my life easier. (The entries are here and here.) In summary this program automates the messy but easy administrative task of editing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miraz Jordan</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-958</link>
		<dc:creator>Miraz Jordan</dc:creator>
		<pubDate>Thu, 25 Sep 2008 20:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-958</guid>
		<description>Thanks Lawrence. I&#039;d looked for typos, but hadn&#039;t spotted that one.</description>
		<content:encoded><![CDATA[<p>Thanks Lawrence. I&#8217;d looked for typos, but hadn&#8217;t spotted that one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-957</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Thu, 25 Sep 2008 19:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-957</guid>
		<description>I&#039;ve done a &lt;a href=&quot;http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/&quot; rel=&quot;nofollow&quot;&gt;new post&lt;/a&gt; on this one - please continue the comments there.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve done a <a href="http://it.gen.nz/2008/09/26/a-little-programming-project-part-2/" rel="nofollow">new post</a> on this one &#8211; please continue the comments there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence D'Oliveiro</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-953</link>
		<dc:creator>Lawrence D'Oliveiro</dc:creator>
		<pubDate>Thu, 25 Sep 2008 06:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-953</guid>
		<description>&quot;rnzrurl&quot; vs &quot;rnzurl&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;rnzrurl&#8221; vs &#8220;rnzurl&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miraz Jordan</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-947</link>
		<dc:creator>Miraz Jordan</dc:creator>
		<pubDate>Wed, 24 Sep 2008 18:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-947</guid>
		<description>Hi Colin,

still no joy. :-(

The following lines numbered here for ease of reading, but not numbered in the Terminal entries. I do this:

1] python
2] import urllib
3] rnzrurl = &quot;http://www.radionz.co.nz/national/programmes/ninetonoon&quot;
4] page = urllib.urlopen(rnzurl).read()

and get this:

Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
NameError: name &#039;rnzurl&#039; is not defined


At least the error message is now different from the first one I was seeing. :-)

Any further thoughts?

Cheers,

Miraz</description>
		<content:encoded><![CDATA[<p>Hi Colin,</p>
<p>still no joy. :-(</p>
<p>The following lines numbered here for ease of reading, but not numbered in the Terminal entries. I do this:</p>
<p>1] python<br />
2] import urllib<br />
3] rnzrurl = &#8220;http://www.radionz.co.nz/national/programmes/ninetonoon&#8221;<br />
4] page = urllib.urlopen(rnzurl).read()</p>
<p>and get this:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 1, in<br />
NameError: name &#8216;rnzurl&#8217; is not defined</p>
<p>At least the error message is now different from the first one I was seeing. :-)</p>
<p>Any further thoughts?</p>
<p>Cheers,</p>
<p>Miraz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-941</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Tue, 23 Sep 2008 05:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-941</guid>
		<description>Hi Miraz

You have spotted my deliberate mistake :-)

The &#039;urlopen&#039; needs to be prefixed by a &#039;urllib.&#039; so Python knows where to find it.

The line in question should read:

page = urllib.urlopen(rnzurl).read()

I&#039;ll change the posting so it&#039;s correct.

Anyone else find errors, please point them out.

Colin</description>
		<content:encoded><![CDATA[<p>Hi Miraz</p>
<p>You have spotted my deliberate mistake :-)</p>
<p>The &#8216;urlopen&#8217; needs to be prefixed by a &#8216;urllib.&#8217; so Python knows where to find it.</p>
<p>The line in question should read:</p>
<p>page = urllib.urlopen(rnzurl).read()</p>
<p>I&#8217;ll change the posting so it&#8217;s correct.</p>
<p>Anyone else find errors, please point them out.</p>
<p>Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miraz Jordan</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-940</link>
		<dc:creator>Miraz Jordan</dc:creator>
		<pubDate>Tue, 23 Sep 2008 04:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-940</guid>
		<description>Hey Colin,

thanks so much for the link love. :-)

Thanks too for the beginnings of this practical intro to Python - it&#039;s something I&#039;ve long been curious about.

I have a problem. I get as far as the 4th line in your instructions above (the line starting page=) and get an error:

Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
NameError: name &#039;urlopen&#039; is not defined

My version of Python is the same as yours (except that yours says 19:35:16 and mine says 19:35:17). Any idea why I might be getting an error?

I&#039;ve copied and pasted (or dragged and dropped) from your instructions...</description>
		<content:encoded><![CDATA[<p>Hey Colin,</p>
<p>thanks so much for the link love. :-)</p>
<p>Thanks too for the beginnings of this practical intro to Python &#8211; it&#8217;s something I&#8217;ve long been curious about.</p>
<p>I have a problem. I get as far as the 4th line in your instructions above (the line starting page=) and get an error:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 1, in<br />
NameError: name &#8216;urlopen&#8217; is not defined</p>
<p>My version of Python is the same as yours (except that yours says 19:35:16 and mine says 19:35:17). Any idea why I might be getting an error?</p>
<p>I&#8217;ve copied and pasted (or dragged and dropped) from your instructions&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence D'Oliveiro</title>
		<link>http://it.gen.nz/2008/09/21/a-little-programming-project/comment-page-1/#comment-938</link>
		<dc:creator>Lawrence D'Oliveiro</dc:creator>
		<pubDate>Mon, 22 Sep 2008 09:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://it.gen.nz/?p=182#comment-938</guid>
		<description>Python is a great choice. Having started learning it myself about three years ago, after doing Perl for many years, I must say it&#039;s a refreshing change--a good, clean, compact core with an amazing number of libraries built on top of that.

Just one thought: shouldn&#039;t you use https:// instead of http:// in the XML-RPC to your WordPress server? Security and all that...</description>
		<content:encoded><![CDATA[<p>Python is a great choice. Having started learning it myself about three years ago, after doing Perl for many years, I must say it&#8217;s a refreshing change&#8211;a good, clean, compact core with an amazing number of libraries built on top of that.</p>
<p>Just one thought: shouldn&#8217;t you use https:// instead of http:// in the XML-RPC to your WordPress server? Security and all that&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

