<?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: mtsend.py &#8211; A Command Line Tool for Movable Type</title>
	<atom:link href="http://scott.yang.id.au/2002/12/mtsendpy/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.yang.id.au/2002/12/mtsendpy/</link>
	<description>Faith, Technology and Randomness in Life, According to Scott</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:17:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Vash</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-102759</link>
		<dc:creator>Vash</dc:creator>
		<pubDate>Mon, 02 Jan 2012 09:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-102759</guid>
		<description>I&#039;m having a bit of a problem:

I&#039;m hosting my own wordpress site on my own server.  I want to use this python script on that server, but I can&#039;t figure out how to get the URL correct.  I&#039;ve tried localhost/xmlrpc.php, but I just get a 301 Moved Permanently error.  I&#039;ve also tried my actual dns/IP address, but it just times out.  I also also tried giving it the absolute path to the xmlrpc.php file, but no such luck.

I&#039;m running apache2 on an ubuntu server.  I know everything is set up fine because I can use this script with the same config and post from a different network (using my dns/IP).  Unfortunately, I need to be able to use this script on the same machine that the wordpress site is being hosted on.  What&#039;s the best way to go about doing this?

Thanks!
Vash</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a bit of a problem:</p>
<p>I&#8217;m hosting my own wordpress site on my own server.  I want to use this python script on that server, but I can&#8217;t figure out how to get the URL correct.  I&#8217;ve tried localhost/xmlrpc.php, but I just get a 301 Moved Permanently error.  I&#8217;ve also tried my actual dns/IP address, but it just times out.  I also also tried giving it the absolute path to the xmlrpc.php file, but no such luck.</p>
<p>I&#8217;m running apache2 on an ubuntu server.  I know everything is set up fine because I can use this script with the same config and post from a different network (using my dns/IP).  Unfortunately, I need to be able to use this script on the same machine that the wordpress site is being hosted on.  What&#8217;s the best way to go about doing this?</p>
<p>Thanks!<br />
Vash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip Smith</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-101885</link>
		<dc:creator>Phillip Smith</dc:creator>
		<pubDate>Sun, 17 Apr 2011 22:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-101885</guid>
		<description>Any chance of you throwing this on Github? I&#039;d like to add support for post status, tags, and so on, and it would be great to be able to contribute it back.</description>
		<content:encoded><![CDATA[<p>Any chance of you throwing this on Github? I&#8217;d like to add support for post status, tags, and so on, and it would be great to be able to contribute it back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benegal</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-99323</link>
		<dc:creator>benegal</dc:creator>
		<pubDate>Thu, 29 Oct 2009 07:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-99323</guid>
		<description>@clintJCL
I&#039;ve had parse errors recently too. Seems like a server issue. I tried posting the next day and all was fine.
--rb</description>
		<content:encoded><![CDATA[<p>@clintJCL<br />
I&#8217;ve had parse errors recently too. Seems like a server issue. I tried posting the next day and all was fine.<br />
&#8211;rb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJ&#8217;s Weblog &#187; Blog Archive &#187; Blosxom entries into MT</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-98366</link>
		<dc:creator>DJ&#8217;s Weblog &#187; Blog Archive &#187; Blosxom entries into MT</dc:creator>
		<pubDate>Thu, 30 Apr 2009 09:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-98366</guid>
		<description>[...] then one that used XML-RPC, before discovering the import feature from reading the documentation to mtsend.py. A simple file format to mass-load into MT. [...]</description>
		<content:encoded><![CDATA[<p>[...] then one that used XML-RPC, before discovering the import feature from reading the documentation to mtsend.py. A simple file format to mass-load into MT. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ClintJCL</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-97735</link>
		<dc:creator>ClintJCL</dc:creator>
		<pubDate>Thu, 05 Mar 2009 21:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-97735</guid>
		<description>Sorry, the error message didn&#039;t come through. It was:
Fault -32700: &#039;parse error. not well formed&#039;</description>
		<content:encoded><![CDATA[<p>Sorry, the error message didn&#8217;t come through. It was:<br />
Fault -32700: &#8216;parse error. not well formed&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ClintJCL</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-97734</link>
		<dc:creator>ClintJCL</dc:creator>
		<pubDate>Thu, 05 Mar 2009 21:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-97734</guid>
		<description>okay...  the timezone issue is due to not using date_created_gmt ... but anyway... i&#039;m just trying to do a normal post like the last 200+ posts i&#039;ve used mtsend.py for, and all of a sudden i&#039;m getting an error:

Parsing post entry from standard input...
Saving new post entry...
Error: 

Of course, how can i know what isn&#039;t well formed when it doesn&#039;t tell me what it is? Frustrated.</description>
		<content:encoded><![CDATA[<p>okay&#8230;  the timezone issue is due to not using date_created_gmt &#8230; but anyway&#8230; i&#8217;m just trying to do a normal post like the last 200+ posts i&#8217;ve used mtsend.py for, and all of a sudden i&#8217;m getting an error:</p>
<p>Parsing post entry from standard input&#8230;<br />
Saving new post entry&#8230;<br />
Error: </p>
<p>Of course, how can i know what isn&#8217;t well formed when it doesn&#8217;t tell me what it is? Frustrated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benegal r</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-97719</link>
		<dc:creator>benegal r</dc:creator>
		<pubDate>Wed, 04 Mar 2009 03:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-97719</guid>
		<description>I don&#039;t know what you mean exactly, but I do use a shell script I wrote to pick up posts from a certain folder and post them using mtsend.py. The file names contain the date to be posted.
A cron job runs 2 times a day and checks.

mtsend.py follows the usual unix philosophy of one program doing one job.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know what you mean exactly, but I do use a shell script I wrote to pick up posts from a certain folder and post them using mtsend.py. The file names contain the date to be posted.<br />
A cron job runs 2 times a day and checks.</p>
<p>mtsend.py follows the usual unix philosophy of one program doing one job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ClintJCL</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-97716</link>
		<dc:creator>ClintJCL</dc:creator>
		<pubDate>Tue, 03 Mar 2009 23:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-97716</guid>
		<description>I wanted to use this to create future-dated wordpress posts.. but.. it&#039;s hard.

I have to manually offset for GMT. Fine. It&#039;s not relaly 6:26PM, it&#039;s 11:26PM. I know I&#039;m GMT-5. That part is easy.

Now it successfully posts to wordpress -- scheduled and everything! Except when the time comes, it doesn&#039;t post. ARGH.

I literally will need to find another complete solution for blogging if that doesn&#039;t work. It sucks, because I have been using mtsend for over a year! ):</description>
		<content:encoded><![CDATA[<p>I wanted to use this to create future-dated wordpress posts.. but.. it&#8217;s hard.</p>
<p>I have to manually offset for GMT. Fine. It&#8217;s not relaly 6:26PM, it&#8217;s 11:26PM. I know I&#8217;m GMT-5. That part is easy.</p>
<p>Now it successfully posts to wordpress &#8212; scheduled and everything! Except when the time comes, it doesn&#8217;t post. ARGH.</p>
<p>I literally will need to find another complete solution for blogging if that doesn&#8217;t work. It sucks, because I have been using mtsend for over a year! ):</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-97685</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Fri, 27 Feb 2009 23:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-97685</guid>
		<description>Hi,

I&#039;m trying mtsend.py on a drupal site, and I, too, can&#039;t get past the &quot;Error:url&#039; message. What is the reason? Did anybody find it out?

Another question: can mtsend.py today set or read fields in posts which have custom fields?

TIA,
Marco</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying mtsend.py on a drupal site, and I, too, can&#8217;t get past the &#8220;Error:url&#8217; message. What is the reason? Did anybody find it out?</p>
<p>Another question: can mtsend.py today set or read fields in posts which have custom fields?</p>
<p>TIA,<br />
Marco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r benegal</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-94859</link>
		<dc:creator>r benegal</dc:creator>
		<pubDate>Sat, 23 Aug 2008 06:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-94859</guid>
		<description>Dear Scott,
Just a note to tell you that I still use mtsend.py both from Vim and the command line on Mac OS X Leopard (10.5.4), so it&#039;s still chugging along great.

It inspired me to write a ruby blogger for Blogger (blogspot). I use mtsend.py for wordpress blogs.

I just wrote a little script so it decides on the alias based on the folder I am in (from vim, it&#039;s a problem changing aliases)

&lt;code&gt;if [ $# -eq 0 ]
then
    echo &quot;I got no filename&quot;
    exit 1
fi
alias=`basename $PWD`
echo &quot;Using alias: $alias&quot; 
mtsend.py -N -a $alias &lt; $*
&lt;/code&gt;
--
rahul</description>
		<content:encoded><![CDATA[<p>Dear Scott,<br />
Just a note to tell you that I still use mtsend.py both from Vim and the command line on Mac OS X Leopard (10.5.4), so it&#8217;s still chugging along great.</p>
<p>It inspired me to write a ruby blogger for Blogger (blogspot). I use mtsend.py for wordpress blogs.</p>
<p>I just wrote a little script so it decides on the alias based on the folder I am in (from vim, it&#8217;s a problem changing aliases)</p>
<p><code>if [ $# -eq 0 ]<br />
then<br />
    echo "I got no filename"<br />
    exit 1<br />
fi<br />
alias=`basename $PWD`<br />
echo "Using alias: $alias"<br />
mtsend.py -N -a $alias &lt; $*<br />
</code><br />
&#8211;<br />
rahul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: House blogject/tweetject experiments &#171; Notes from a small field</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-92972</link>
		<dc:creator>House blogject/tweetject experiments &#171; Notes from a small field</dc:creator>
		<pubDate>Sat, 03 May 2008 22:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-92972</guid>
		<description>[...] is the perfect answer: I&#8217;ve added a House page which I can update with Google graphs using mtsend.py. The alternative would be to use new posts each time, which would be great to keep a history but [...]</description>
		<content:encoded><![CDATA[<p>[...] is the perfect answer: I&#8217;ve added a House page which I can update with Google graphs using mtsend.py. The alternative would be to use new posts each time, which would be great to keep a history but [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Millenniumdark &#187; Blog Archive &#187; mtsend命令行下的blog客户端</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-92103</link>
		<dc:creator>Millenniumdark &#187; Blog Archive &#187; mtsend命令行下的blog客户端</dc:creator>
		<pubDate>Sat, 05 Apr 2008 13:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-92103</guid>
		<description>[...] launchpad上倒是有个clog，不过貌似还在开发中。这里有个mtsend，是个python脚本，虽是为Movable Type写的，但也能用于wordpress。 [...]</description>
		<content:encoded><![CDATA[<p>[...] launchpad上倒是有个clog，不过貌似还在开发中。这里有个mtsend，是个python脚本，虽是为Movable Type写的，但也能用于wordpress。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ClintJCL</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-91435</link>
		<dc:creator>ClintJCL</dc:creator>
		<pubDate>Sun, 09 Mar 2008 00:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-91435</guid>
		<description>Hi,

I am interested in using this tool to post to LiveJournal as well.  I am having very little success!  Does anyone have any information on this?

I have tried both directly with LJ&#039;s XMLRCP interace (no results), and indirectly using Delicious Glue, a script for forwarding del.icio.us&#039;s daily blogposts to LJ via XMLRCP request.  When I use delicious glue, I can get the body through, but not the subject and tags. 

Any clue what I&#039;m doing wrong?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am interested in using this tool to post to LiveJournal as well.  I am having very little success!  Does anyone have any information on this?</p>
<p>I have tried both directly with LJ&#8217;s XMLRCP interace (no results), and indirectly using Delicious Glue, a script for forwarding del.icio.us&#8217;s daily blogposts to LJ via XMLRCP request.  When I use delicious glue, I can get the body through, but not the subject and tags. </p>
<p>Any clue what I&#8217;m doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Mason</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-91398</link>
		<dc:creator>Justin Mason</dc:creator>
		<pubDate>Fri, 07 Mar 2008 12:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-91398</guid>
		<description>hi -- great script!  could do with an update, though ;)

Recently, I&#039;ve started getting this error with my WP 2.3.3 blog:

blogclient -v -L 2
Traceback (most recent call last):
  File &quot;/home/jm/bin/blogclient&quot;, line 906, in 
    main(sys.argv[1:])
  File &quot;/home/jm/bin/blogclient&quot;, line 897, in main
    mtsend.execute()
  File &quot;/home/jm/bin/blogclient&quot;, line 231, in execute
    handler()
  File &quot;/home/jm/bin/blogclient&quot;, line 314, in execute_l
    self.get_password(), num)
  File &quot;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&quot;, line 1147, in __call__
    return self.__send(self.__name, args)
  File &quot;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&quot;, line 1437, in __request
    verbose=self.__verbose
  File &quot;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&quot;, line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File &quot;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&quot;, line 1335, in _parse_response
    p.feed(response)
  File &quot;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&quot;, line 547, in feed
    self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 2, column 0

it appears the server is sending back an additional newline at the start of the XML-RPC response, I&#039;m not sure why, or if this is valid.

I hacked around it by adding the re.sub() line below to xmlrpclib.py:

    def _parse_response(self, file, sock):
        # read response from input file/socket, and parse it

        p, u = self.getparser()

        while 1:
            if sock:
                response = sock.recv(1024)
            else:
                response = file.read(1024)
            if not response:
                break
            if self.verbose:
                print &quot;body:&quot;, repr(response)
            response = re.sub(r&#039;(?s)^\n&#039;, &#039;&#039;, response) # jm fix
            p.feed(response)

        file.close()
        p.close()

        return u.close()</description>
		<content:encoded><![CDATA[<p>hi &#8212; great script!  could do with an update, though ;)</p>
<p>Recently, I&#8217;ve started getting this error with my WP 2.3.3 blog:</p>
<p>blogclient -v -L 2<br />
Traceback (most recent call last):<br />
  File &#8220;/home/jm/bin/blogclient&#8221;, line 906, in<br />
    main(sys.argv[1:])<br />
  File &#8220;/home/jm/bin/blogclient&#8221;, line 897, in main<br />
    mtsend.execute()<br />
  File &#8220;/home/jm/bin/blogclient&#8221;, line 231, in execute<br />
    handler()<br />
  File &#8220;/home/jm/bin/blogclient&#8221;, line 314, in execute_l<br />
    self.get_password(), num)<br />
  File &#8220;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&#8221;, line 1147, in __call__<br />
    return self.__send(self.__name, args)<br />
  File &#8220;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&#8221;, line 1437, in __request<br />
    verbose=self.__verbose<br />
  File &#8220;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&#8221;, line 1201, in request<br />
    return self._parse_response(h.getfile(), sock)<br />
  File &#8220;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&#8221;, line 1335, in _parse_response<br />
    p.feed(response)<br />
  File &#8220;/usr/local/putplace/Python-2.5.1/lib/python2.5/xmlrpclib.py&#8221;, line 547, in feed<br />
    self._parser.Parse(data, 0)<br />
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 2, column 0</p>
<p>it appears the server is sending back an additional newline at the start of the XML-RPC response, I&#8217;m not sure why, or if this is valid.</p>
<p>I hacked around it by adding the re.sub() line below to xmlrpclib.py:</p>
<p>    def _parse_response(self, file, sock):<br />
        # read response from input file/socket, and parse it</p>
<p>        p, u = self.getparser()</p>
<p>        while 1:<br />
            if sock:<br />
                response = sock.recv(1024)<br />
            else:<br />
                response = file.read(1024)<br />
            if not response:<br />
                break<br />
            if self.verbose:<br />
                print &#8220;body:&#8221;, repr(response)<br />
            response = re.sub(r&#8217;(?s)^\n&#8217;, &#8221;, response) # jm fix<br />
            p.feed(response)</p>
<p>        file.close()<br />
        p.close()</p>
<p>        return u.close()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Finally: Blogging from the CLI with mtsend.py &#187; oscillate it</title>
		<link>http://scott.yang.id.au/2002/12/mtsendpy/#comment-90910</link>
		<dc:creator>Finally: Blogging from the CLI with mtsend.py &#187; oscillate it</dc:creator>
		<pubDate>Sat, 09 Feb 2008 21:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/2002/12/mtsendpy/#comment-90910</guid>
		<description>[...] xml-rpc.com) and uses one of the three available APIs for Wordpress. I use mtsend.py by Scott Yang. mtsend.py is written in Python. I have version 2.5 and everything works [...]</description>
		<content:encoded><![CDATA[<p>[...] xml-rpc.com) and uses one of the three available APIs for WordPress. I use mtsend.py by Scott Yang. mtsend.py is written in Python. I have version 2.5 and everything works [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

