<?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: Twitter Export Script</title>
	<atom:link href="http://www.adamfranco.com/2008/10/13/twitter-export-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/</link>
	<description>Musings, projects, software, and photography.</description>
	<lastBuildDate>Sun, 22 Jan 2012 19:17:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: kołowrotki</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-1770</link>
		<dc:creator>kołowrotki</dc:creator>
		<pubDate>Tue, 08 Nov 2011 15:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-1770</guid>
		<description>Enjoyed reading  this, very good stuff,  regards .</description>
		<content:encoded><![CDATA[<p>Enjoyed reading  this, very good stuff,  regards .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-1458</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Sat, 17 Sep 2011 12:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-1458</guid>
		<description>P.S Great script!.

Thanks.
Pablo.</description>
		<content:encoded><![CDATA[<p>P.S Great script!.</p>
<p>Thanks.<br />
Pablo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-1457</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Sat, 17 Sep 2011 12:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-1457</guid>
		<description>Hi Adam.

I&#039;ve just came accross your script and was wondering how to change this to just give all the tweets and dates of tweets, and exclude all the other data.
Is this possible and if so can you explain how.

Looking forward to reply.
All The Best.
Pablo</description>
		<content:encoded><![CDATA[<p>Hi Adam.</p>
<p>I&#8217;ve just came accross your script and was wondering how to change this to just give all the tweets and dates of tweets, and exclude all the other data.<br />
Is this possible and if so can you explain how.</p>
<p>Looking forward to reply.<br />
All The Best.<br />
Pablo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skordahl</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-1411</link>
		<dc:creator>Skordahl</dc:creator>
		<pubDate>Wed, 19 Jan 2011 22:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-1411</guid>
		<description>Great post! 
Thanks</description>
		<content:encoded><![CDATA[<p>Great post!<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Franco</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-136</link>
		<dc:creator>Adam Franco</dc:creator>
		<pubDate>Wed, 21 Apr 2010 18:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-136</guid>
		<description>@Chris -- Accessing this script via the browser should be fine instead of running it from the command line. The only real issue you might run into is timeouts due to your setting of &lt;code&gt;max_execution_time&lt;/code&gt; (default 30s) or Apache&#039;s Timeout directive (default 300s). These time limits generally don&#039;t apply when running scripts on the command line, making command-line invocation slightly more generally applicable.</description>
		<content:encoded><![CDATA[<p>@Chris &#8212; Accessing this script via the browser should be fine instead of running it from the command line. The only real issue you might run into is timeouts due to your setting of <code>max_execution_time</code> (default 30s) or Apache&#8217;s Timeout directive (default 300s). These time limits generally don&#8217;t apply when running scripts on the command line, making command-line invocation slightly more generally applicable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-135</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 21 Apr 2010 05:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-135</guid>
		<description>Great script Adam! I just tried it and successfully pulled down my 21 pages of tweets into XML.

What holds this script back from being used on the Internet (via HTTP).
I think it&#039;d be cool to run this script via http... and then in the background save the tweets to SQL. Any recs on which part of the script would need updating to get that going? Thanks!</description>
		<content:encoded><![CDATA[<p>Great script Adam! I just tried it and successfully pulled down my 21 pages of tweets into XML.</p>
<p>What holds this script back from being used on the Internet (via HTTP).<br />
I think it&#8217;d be cool to run this script via http&#8230; and then in the background save the tweets to SQL. Any recs on which part of the script would need updating to get that going? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gery</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-134</link>
		<dc:creator>Gery</dc:creator>
		<pubDate>Mon, 15 Mar 2010 06:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-134</guid>
		<description>Thank u very very much!!!</description>
		<content:encoded><![CDATA[<p>Thank u very very much!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Franco</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-133</link>
		<dc:creator>Adam Franco</dc:creator>
		<pubDate>Sun, 14 Mar 2010 19:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-133</guid>
		<description>Gery,

To fetch just one page, you could change the line
} while ($numStatus);
to
} while ($numStatus &amp;&amp; $page &lt; 1);
or for 3 pages, change it to:
} while ($numStatus &amp;&amp; $page &lt; 3);

To fetch only 3 updates from the first page, make the change above as well as change
	foreach ($pageDoc-&gt;getElementsByTagName(&#039;status&#039;) as $status) {
		$root-&gt;appendChild($allDoc-&gt;createTextNode(&quot;\n&quot;));
		$root-&gt;appendChild($allDoc-&gt;importNode($status, true));
		$numStatus++;
	}
to
	foreach ($pageDoc-&gt;getElementsByTagName(&#039;status&#039;) as $status) {
		$root-&gt;appendChild($allDoc-&gt;createTextNode(&quot;\n&quot;));
		$root-&gt;appendChild($allDoc-&gt;importNode($status, true));
		$numStatus++;
		if ($numStatus &gt; 3) {
			break;
		}
	}</description>
		<content:encoded><![CDATA[<p>Gery,</p>
<p>To fetch just one page, you could change the line<br />
} while ($numStatus);<br />
to<br />
} while ($numStatus &amp;&amp; $page &lt; 1);<br />
or for 3 pages, change it to:<br />
} while ($numStatus &amp;&amp; $page &lt; 3);</p>
<p>To fetch only 3 updates from the first page, make the change above as well as change<br />
	foreach ($pageDoc-&gt;getElementsByTagName(&#8216;status&#8217;) as $status) {<br />
		$root-&gt;appendChild($allDoc-&gt;createTextNode(&#8220;\n&#8221;));<br />
		$root-&gt;appendChild($allDoc-&gt;importNode($status, true));<br />
		$numStatus++;<br />
	}<br />
to<br />
	foreach ($pageDoc-&gt;getElementsByTagName(&#8216;status&#8217;) as $status) {<br />
		$root-&gt;appendChild($allDoc-&gt;createTextNode(&#8220;\n&#8221;));<br />
		$root-&gt;appendChild($allDoc-&gt;importNode($status, true));<br />
		$numStatus++;<br />
		if ($numStatus &gt; 3) {<br />
			break;<br />
		}<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gery</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-132</link>
		<dc:creator>Gery</dc:creator>
		<pubDate>Sat, 13 Mar 2010 22:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-132</guid>
		<description>Hey Adam,
u helped me a lot!!!! thanks!!!!
i have another little question if i may...
i want to get only the last 3 statuses  and not all the timeline... is there a little something to change in ur script so i&#039;ll get only the last 3?
thanks again,
Gery.</description>
		<content:encoded><![CDATA[<p>Hey Adam,<br />
u helped me a lot!!!! thanks!!!!<br />
i have another little question if i may&#8230;<br />
i want to get only the last 3 statuses  and not all the timeline&#8230; is there a little something to change in ur script so i&#8217;ll get only the last 3?<br />
thanks again,<br />
Gery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Franco</title>
		<link>http://www.adamfranco.com/2008/10/13/twitter-export-script/#comment-131</link>
		<dc:creator>Adam Franco</dc:creator>
		<pubDate>Sat, 13 Mar 2010 14:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfranco.com/?p=88#comment-131</guid>
		<description>Hi Gery,

To output a transformed version, replace the last line
print $allDoc-&gt;saveXml();
with something close to this:
$xslDoc = new DOMDocument();
$xsl = new XSLTProcessor();
$xslDoc-&gt;load($xsl_filename);
$xsl-&gt;importStyleSheet($xslDoc);

print $xsl-&gt;transformToXML($allDoc);

I haven&#039;t had a chance to test this, but it is based on &lt;a href=&quot;http://us.php.net/manual/en/xsltprocessor.construct.php#91296&quot; rel=&quot;nofollow&quot;&gt;this example of XSLTProcessor usage&lt;/a&gt;. The only thing you should need to change is to replace &lt;code&gt;$xsl_filename&lt;/code&gt; with the path to your XSL file.</description>
		<content:encoded><![CDATA[<p>Hi Gery,</p>
<p>To output a transformed version, replace the last line<br />
print $allDoc-&gt;saveXml();<br />
with something close to this:<br />
$xslDoc = new DOMDocument();<br />
$xsl = new XSLTProcessor();<br />
$xslDoc-&gt;load($xsl_filename);<br />
$xsl-&gt;importStyleSheet($xslDoc);</p>
<p>print $xsl-&gt;transformToXML($allDoc);</p>
<p>I haven&#8217;t had a chance to test this, but it is based on <a href="http://us.php.net/manual/en/xsltprocessor.construct.php#91296" rel="nofollow">this example of XSLTProcessor usage</a>. The only thing you should need to change is to replace <code>$xsl_filename</code> with the path to your XSL file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

