<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Addicted To 1's and 0's &#187; code</title>
	<atom:link href="http://www.addto10.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.addto10.com</link>
	<description>A continuation of the nerd vs. dork debate</description>
	<lastBuildDate>Sun, 13 Jun 2010 14:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Launch Your Own Twitter Bot (PHP, Python, Ruby)</title>
		<link>http://www.addto10.com/launch-your-own-twitter-bot-php-python-ruby/</link>
		<comments>http://www.addto10.com/launch-your-own-twitter-bot-php-python-ruby/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 15:19:41 +0000</pubDate>
		<dc:creator>brent</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[Mashup]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://www.addto10.com/?p=166</guid>
		<description><![CDATA[If you use twitter you&#8217;ve undoubtably come across a twitter bot, sadly there&#8217;s a very good chance it was because it was spamming you. In this post I&#8217;ll provide you with all the tools, source code and know-how to be able to build and launch your own twitter bot, and i&#8217;ll even give you resources [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;"><img src="http://www.addto10.com/wp-content/uploads/2009/07/reddy-robot.jpg" alt="reddy-robot.jpg" border="0" width="440" height="330" /></div>
<p>If you use twitter you&#8217;ve undoubtably come across a twitter bot, sadly there&#8217;s a very good chance it was because it was spamming you. In this post I&#8217;ll provide you with all the tools, source code and know-how to be able to build and launch your own twitter bot, and i&#8217;ll even give you resources to do it in the programming language of your choice. Why? Because there are so many positive uses for a twitter bot&#8230;.including anti-spam! Go take a look at <a href="http://thetwittertagproject.com/botdb.php">the twitter tag project</a> for some good examples of bots currents on twitter if you&#8217;re not able to come up with any on your own. </p>
<p>First, if you&#8217;d like to fool around with an automated bot on twitter but lack the technical knowhow, go pay a visit to the <a href="http://www.botomatic.com/">Botomatic site</a>. There you can create your own bot using their easy-to-use GUI. It&#8217;ll take you two seconds and you will be up and running.</p>
<p>If you&#8217;re a beginner, have no fear there&#8217;s a pre-configured setup for you as well. Go download and install the <a href="http://twitterbotscript.com/">Twitterbotscript</a> from Tyler Colwell. It&#8217;s 100% free and was coded to include a helpful GUI to control the bot functionality. It&#8217;s actually a pretty cool package that uses the API. I&#8217;ve taken a lot of his code and re-used it in various test bots of my own so i&#8217;d definitely recommend anyone looking to script their own bot in PHP to download his app.</p>
<p>Now for the PHP programmers out there, the first example of a great <a href="http://www.ohloh.net/p/phptwitterbot">PHP5 twitter bot framework</a> is from the folks over at ohloh.net (Jason Allen and Scott Collison). This one is setup to allow you to search and retweet what you&#8217;ve found.</p>
<p>If you&#8217;d like to incorporate Jabber/XMPP into the bot (that way you can access it via gchat), then there&#8217;s a great tutorial over <a href="http://www.jazzychad.com/twitter/bots/">on jazzychad.com</a>. <a href="https://imified.tenderapp.com/faqs/building-imified-bots/twitter-bot-sample">Tenderapp.com</a> has on their blog a PHP tutorial with full source-code for a twitter bot that will look up the traffic conditions and tweet them when messaged. This one also has a walk-through for getting it up on xmpp/jabber. Here&#8217;s the source for a <a href="http://beamsyn.net/index.php?page=zipweather">similar bot</a> that looks up the weather and retweets it on command.</p>
<p>If you&#8217;d like to setup a twitter bot using Python, <a href="http://www.halotis.com/2009/07/01/rss-twitter-bot-in-python/">Halotis.com</a> has a great tutorial that uses a sqlite backend to keep track of what it&#8217;s messaged. For a more elaborate version of an automated bot using python, there&#8217;s a script over on the <a href="http://flowingdata.com/2008/11/05/how-to-make-your-own-twitter-bot-python-implementation/">flowingdata.com blog</a> that also incorporates a local mail server to send and receive messages to the bot.</p>
<p>Last but not least, all of you Ruby folks&#8230;.<a href="http://www.juixe.com/techknow/index.php/2009/01/12/twitter-ruby-gem/">here&#8217;s a Twitter Ruby Gem</a> to go along with the Twitter4R and Twitter Ruby Gems already found in the library. The site also takes you through a few different commands available with this new gem. For complete source-code of a twitter bot written in Ruby, head on over to this snippet of a <a href="http://www.snipiti.com/viewsnippet/index/101">Ruby RSS Twitter Bot</a>.</p>
<p>Easy as pie and now you&#8217;ve got your very own automated twitter bot!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.addto10.com/launch-your-own-twitter-bot-php-python-ruby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
