<?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: Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API to Save Stuff</title>
	<atom:link href="http://www.academicsandbox.com/blog/?feed=rss2&#038;p=204" rel="self" type="application/rss+xml" />
	<link>http://www.academicsandbox.com/blog/?p=204</link>
	<description>For all things bloggy.</description>
	<lastBuildDate>Thu, 15 Jul 2010 00:23:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Barak</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-16802</link>
		<dc:creator>Barak</dc:creator>
		<pubDate>Wed, 23 Jun 2010 02:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-16802</guid>
		<description>Many thanks for this useful script,
For some reason the condition for the `for each` loop is not met with: 
($stdClassResults-&gt;results as $item)
I`m getting &quot;done&quot;
but nothing is inserted into the DB
Any idea ?
Thanks</description>
		<content:encoded><![CDATA[<p>Many thanks for this useful script,<br />
For some reason the condition for the `for each` loop is not met with:<br />
($stdClassResults-&gt;results as $item)<br />
I`m getting &#8220;done&#8221;<br />
but nothing is inserted into the DB<br />
Any idea ?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanvi</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-10668</link>
		<dc:creator>Tanvi</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-10668</guid>
		<description>Thank you so much! Will try it out! :)</description>
		<content:encoded><![CDATA[<p>Thank you so much! Will try it out! <img src='http://www.academicsandbox.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-10487</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Fri, 26 Feb 2010 19:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-10487</guid>
		<description>The process of adding a crontab entry depends on your hosting provider.  In general, the crontab format is:

minute hour day month weekday command

The timed execution of your script would be up to you, and would depend on the frequency of the term(s) you&#039;re tracking (keeping in mind the search limits based on number of results and length of time; IOW, once a day would be adequate as long as there aren&#039;t thousands of results in that one day).

So, once per day at say 6pm would be:

* 18 * * * command

&quot;command&quot; is the next part: if you have command-line cURL available on your system, the command would be:

curl http://yourdomain/pathtoscript

Using cURL to invoke http allows you to keep the script as-is with regards to the GET query string, although it might simply be easier (if this is the only term you&#039;d be tracking) just to hardcode the values. Similarly, If you do not have access to commandline cURL but you have access to a PHP binary you would likely just hardcode the values and the command would be:

/path/to/php /path/to/script

(bearing in mind you can pass arguments on the command line but then would have to change the script anyway)</description>
		<content:encoded><![CDATA[<p>The process of adding a crontab entry depends on your hosting provider.  In general, the crontab format is:</p>
<p>minute hour day month weekday command</p>
<p>The timed execution of your script would be up to you, and would depend on the frequency of the term(s) you&#8217;re tracking (keeping in mind the search limits based on number of results and length of time; IOW, once a day would be adequate as long as there aren&#8217;t thousands of results in that one day).</p>
<p>So, once per day at say 6pm would be:</p>
<p>* 18 * * * command</p>
<p>&#8220;command&#8221; is the next part: if you have command-line cURL available on your system, the command would be:</p>
<p>curl <a href="http://yourdomain/pathtoscript" rel="nofollow">http://yourdomain/pathtoscript</a></p>
<p>Using cURL to invoke http allows you to keep the script as-is with regards to the GET query string, although it might simply be easier (if this is the only term you&#8217;d be tracking) just to hardcode the values. Similarly, If you do not have access to commandline cURL but you have access to a PHP binary you would likely just hardcode the values and the command would be:</p>
<p>/path/to/php /path/to/script</p>
<p>(bearing in mind you can pass arguments on the command line but then would have to change the script anyway)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanvi</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-10463</link>
		<dc:creator>Tanvi</dc:creator>
		<pubDate>Fri, 26 Feb 2010 12:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-10463</guid>
		<description>Thanks for this code! I was looking for somehting exactly like this. It works amazingly well! However, I do want automate it cos I want to track a few words over a period of several months. How can I add a cron job script to do so? 

Much appreciated!</description>
		<content:encoded><![CDATA[<p>Thanks for this code! I was looking for somehting exactly like this. It works amazingly well! However, I do want automate it cos I want to track a few words over a period of several months. How can I add a cron job script to do so? </p>
<p>Much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diamondTearz</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-5782</link>
		<dc:creator>diamondTearz</dc:creator>
		<pubDate>Wed, 18 Nov 2009 01:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-5782</guid>
		<description>Thanks for posting this code snippet.  It was a great starting point for a great idea and got me off to a good motivated start.  Twitter here I come!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this code snippet.  It was a great starting point for a great idea and got me off to a good motivated start.  Twitter here I come!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Working with APIs (part 1)</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-2551</link>
		<dc:creator>Working with APIs (part 1)</dc:creator>
		<pubDate>Mon, 31 Aug 2009 19:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-2551</guid>
		<description>[...] server-side scripting language at least to the extent that I describe in this how-to post regarding archiving tweets. But the Google Developer Resources provide many ways of accessing the various Google APIs without [...]</description>
		<content:encoded><![CDATA[<p>[...] server-side scripting language at least to the extent that I describe in this how-to post regarding archiving tweets. But the Google Developer Resources provide many ways of accessing the various Google APIs without [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitter Trackbacks for Academic Sandbox (the blog) » Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API to Save [academicsandbox.com] on Topsy.com</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-2433</link>
		<dc:creator>Twitter Trackbacks for Academic Sandbox (the blog) » Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API to Save [academicsandbox.com] on Topsy.com</dc:creator>
		<pubDate>Tue, 25 Aug 2009 20:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-2433</guid>
		<description>[...] Academic Sandbox (the blog) » Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API...  www.academicsandbox.com/blog/?p=204 &#8211; view page &#8211; cached  #Academic Sandbox (the blog) RSS 2.0 Feed Academic Sandbox (the blog) RSS Feed Academic Sandbox (the blog) Atom 0.3 Academic Sandbox (the blog) » Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API to Save Stuff Comments Feed Academic Sandbox (the blog) Moving Day Twitter Visualization: THATcamp tweets Grab ‘em: Conference Tweet Archives &#8212; From the page [...]</description>
		<content:encoded><![CDATA[<p>[...] Academic Sandbox (the blog) » Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API&#8230;  <a href="http://www.academicsandbox.com/blog/?p=204" rel="nofollow">http://www.academicsandbox.com/blog/?p=204</a> &ndash; view page &ndash; cached  #Academic Sandbox (the blog) RSS 2.0 Feed Academic Sandbox (the blog) RSS Feed Academic Sandbox (the blog) Atom 0.3 Academic Sandbox (the blog) » Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitter API to Save Stuff Comments Feed Academic Sandbox (the blog) Moving Day Twitter Visualization: THATcamp tweets Grab ‘em: Conference Tweet Archives &mdash; From the page [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks for 08/10/2009 — MK Anderson</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-2195</link>
		<dc:creator>Bookmarks for 08/10/2009 — MK Anderson</dc:creator>
		<pubDate>Tue, 11 Aug 2009 02:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-2195</guid>
		<description>[...] Academic Sandbox (the blog) &#187; Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitte... - [...]</description>
		<content:encoded><![CDATA[<p>[...] Academic Sandbox (the blog) &raquo; Archiving Tweets: A Simple Way to Use PHP, MySQL, and the Twitte&#8230; &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-1562</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Wed, 08 Jul 2009 19:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-1562</guid>
		<description>Since this is just one table you don&#039;t need a whole separate database for it.  If you have a database on your host that you use for general or miscellaneous tables then you can just add this one table to that database.  Then again if the only databases you have on your virtual host or server are for WordPress installs or other systems that create their own databases, you&#039;ll have to create a general purpose database to put this table in it.  If your virtual host includes a standard control panel like cPanel or its ilk, there&#039;s probably a button that says &quot;MySQL&quot; that gives you the option to create a new database.  Once created, that database would then appear in your administrative interface to MySQL, if you have one, like phpMyAdmin.   

Once you have a database (and username and password for it) set up, you can issue the SQL query (shown in the post, the text that begins &quot;CREATE TABLE tw_hashtag_search&quot;) to create the table.  If you are using an administrative interface to your database (such as phpMyAdmin) you just go to the &quot;SQL&quot; tab and paste the content of the query there and hit &quot;go&quot; (or &quot;enter&quot; or whatever the button says - I can&#039;t remember).  Then you&#039;ll have a table, in a database, for the script to dump its stuff into.</description>
		<content:encoded><![CDATA[<p>Since this is just one table you don&#8217;t need a whole separate database for it.  If you have a database on your host that you use for general or miscellaneous tables then you can just add this one table to that database.  Then again if the only databases you have on your virtual host or server are for WordPress installs or other systems that create their own databases, you&#8217;ll have to create a general purpose database to put this table in it.  If your virtual host includes a standard control panel like cPanel or its ilk, there&#8217;s probably a button that says &#8220;MySQL&#8221; that gives you the option to create a new database.  Once created, that database would then appear in your administrative interface to MySQL, if you have one, like phpMyAdmin.   </p>
<p>Once you have a database (and username and password for it) set up, you can issue the SQL query (shown in the post, the text that begins &#8220;CREATE TABLE tw_hashtag_search&#8221;) to create the table.  If you are using an administrative interface to your database (such as phpMyAdmin) you just go to the &#8220;SQL&#8221; tab and paste the content of the query there and hit &#8220;go&#8221; (or &#8220;enter&#8221; or whatever the button says &#8211; I can&#8217;t remember).  Then you&#8217;ll have a table, in a database, for the script to dump its stuff into.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.academicsandbox.com/blog/?p=204&#038;cpage=1#comment-1561</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Wed, 08 Jul 2009 17:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.academicsandbox.com/blog/?p=204#comment-1561</guid>
		<description>Thanks so much for posting this (and for your other API posts)! Questions for us newbies: how do I create the database on my server? Do I save it as a particular file type and then upload it to a place on my server? If so, does it matter where I upload it? The only time I&#039;ve created databases on my server is with a wizard which does it all for me. . . .

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks so much for posting this (and for your other API posts)! Questions for us newbies: how do I create the database on my server? Do I save it as a particular file type and then upload it to a place on my server? If so, does it matter where I upload it? The only time I&#8217;ve created databases on my server is with a wizard which does it all for me. . . .</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
