<?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: More Python and Twitter</title>
	<atom:link href="http://jspr.tndy.me/2008/05/more-python-and-twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://jspr.tndy.me/2008/05/more-python-and-twitter/</link>
	<description>buy a vowel</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:18:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jasper Tandy</title>
		<link>http://jspr.tndy.me/2008/05/more-python-and-twitter/comment-page-1/#comment-13</link>
		<dc:creator>Jasper Tandy</dc:creator>
		<pubDate>Sun, 08 Jun 2008 16:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://echohelloworld.com/?p=9#comment-13</guid>
		<description>Thanks - the main thing I was trying to do was use urllib/urllib2 to wrap around the Twitter API and take care of all of that. I&#039;ve done it now, but I&#039;ve stopped using Twitter as I can&#039;t really be bothered with a site that is so unreliable!

I&#039;ll upload my Twitter thing at some point as I quite like the way it works, but it&#039;s not polished, just literally a CLI for interfacing with Twitter.</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; the main thing I was trying to do was use urllib/urllib2 to wrap around the Twitter API and take care of all of that. I&#8217;ve done it now, but I&#8217;ve stopped using Twitter as I can&#8217;t really be bothered with a site that is so unreliable!</p>
<p>I&#8217;ll upload my Twitter thing at some point as I quite like the way it works, but it&#8217;s not polished, just literally a CLI for interfacing with Twitter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binny V A</title>
		<link>http://jspr.tndy.me/2008/05/more-python-and-twitter/comment-page-1/#comment-12</link>
		<dc:creator>Binny V A</dc:creator>
		<pubDate>Sun, 08 Jun 2008 14:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://echohelloworld.com/?p=9#comment-12</guid>
		<description>Here is a small python script I use to get my friends&#039; status...

#!/usr/bin/python

import urllib
from xml.dom import minidom

username = &quot;binnyva&quot;
password = &quot;password_goes_here&quot;

friends_timeline_url = &quot;http://&quot;+username+&quot;:&quot;+password+&quot;@twitter.com/statuses/friends_timeline.xml&quot;
public_timeline_url = &quot;http://twitter.com/statuses/public_timeline.xml&quot; #Not used

dom = minidom.parse(urllib.urlopen(friends_timeline_url))

for status in dom.getElementsByTagName(&quot;status&quot;):
    user_name = status.getElementsByTagName(&quot;name&quot;)[0].firstChild.data
    tweet = status.getElementsByTagName(&quot;text&quot;)[0].firstChild.data
    created_at = status.getElementsByTagName(&quot;created_at&quot;)[0].firstChild.data.split(&quot;+&quot;)[0]

    print user_name, &quot;: \&quot;&quot; + tweet + &quot;\&quot; at &quot; + created_at + &quot;\n&quot;


To post tweets, I use the &lt;a href=&quot;http://binnyva.blogspot.com/2007/03/using-twitter-part-1-command-line.html&quot; rel=&quot;nofollow&quot;&gt;Command Line Twitter Client&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Here is a small python script I use to get my friends&#8217; status&#8230;</p>
<p>#!/usr/bin/python</p>
<p>import urllib<br />
from xml.dom import minidom</p>
<p>username = &#8220;binnyva&#8221;<br />
password = &#8220;password_goes_here&#8221;</p>
<p>friends_timeline_url = &#8220;http://&#8221;+username+&#8221;:&#8221;+password+&#8221;@twitter.com/statuses/friends_timeline.xml&#8221;<br />
public_timeline_url = &#8220;http://twitter.com/statuses/public_timeline.xml&#8221; #Not used</p>
<p>dom = minidom.parse(urllib.urlopen(friends_timeline_url))</p>
<p>for status in dom.getElementsByTagName(&#8220;status&#8221;):<br />
    user_name = status.getElementsByTagName(&#8220;name&#8221;)[0].firstChild.data<br />
    tweet = status.getElementsByTagName(&#8220;text&#8221;)[0].firstChild.data<br />
    created_at = status.getElementsByTagName(&#8220;created_at&#8221;)[0].firstChild.data.split(&#8220;+&#8221;)[0]</p>
<p>    print user_name, &#8220;: \&#8221;" + tweet + &#8220;\&#8221; at &#8221; + created_at + &#8220;\n&#8221;</p>
<p>To post tweets, I use the <a href="http://binnyva.blogspot.com/2007/03/using-twitter-part-1-command-line.html" rel="nofollow">Command Line Twitter Client</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
