code
TweepML – Share Lists Of Twitter Users
Thursday, September 10th, 2009 | Open Source, Tools, Twitter, Utilities | No Comments
Just came across a new service that’s been officially approved by Twitter.com: introducing TweepML, an XML based format for sharing lists of twitter user accounts. If you know what OPML is then you already know the concept behind TweepML, it provides a free universal framework for importing, exporting and creating twitter ‘groups’ that can be shared or even stored as a backup of important accounts. The main website, www.tweepml.org, also includes a free follow tool that helps streamline following lists of users via your twitter account.
On the site it has various libraries and examples available to aid developers in implementing TweepML into new or existing apps. Currently the most popular lists seem to be the ones with the largest number of followers. I’d be willing to bet good money that this is already being used by spammers and/or marketers to cultivate their own twitter accounts targeting various ‘groups’ featured on the site…but then again, almost every tool or platform that is useful has the potential for grey/blackhat usage.
Interesting new format, it’s definitely going to make twitter account sharing (not to mention account duplication) a lot easier!
found via mashable
Launch Your Own Twitter Bot (PHP, Python, Ruby)
Tuesday, July 14th, 2009 | code, Hack, Mashup, Open Source, RSS, Tools, Twitter | 2 Comments

If you use twitter you’ve undoubtably come across a twitter bot, sadly there’s a very good chance it was because it was spamming you. In this post I’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’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….including anti-spam! Go take a look at the twitter tag project for some good examples of bots currents on twitter if you’re not able to come up with any on your own.
First, if you’d like to fool around with an automated bot on twitter but lack the technical knowhow, go pay a visit to the Botomatic site. There you can create your own bot using their easy-to-use GUI. It’ll take you two seconds and you will be up and running.
If you’re a beginner, have no fear there’s a pre-configured setup for you as well. Go download and install the Twitterbotscript from Tyler Colwell. It’s 100% free and was coded to include a helpful GUI to control the bot functionality. It’s actually a pretty cool package that uses the API. I’ve taken a lot of his code and re-used it in various test bots of my own so i’d definitely recommend anyone looking to script their own bot in PHP to download his app.
Now for the PHP programmers out there, the first example of a great PHP5 twitter bot framework 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’ve found.
If you’d like to incorporate Jabber/XMPP into the bot (that way you can access it via gchat), then there’s a great tutorial over on jazzychad.com. Tenderapp.com 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’s the source for a similar bot that looks up the weather and retweets it on command.
If you’d like to setup a twitter bot using Python, Halotis.com has a great tutorial that uses a sqlite backend to keep track of what it’s messaged. For a more elaborate version of an automated bot using python, there’s a script over on the flowingdata.com blog that also incorporates a local mail server to send and receive messages to the bot.
Last but not least, all of you Ruby folks….here’s a Twitter Ruby Gem 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 Ruby RSS Twitter Bot.
Easy as pie and now you’ve got your very own automated twitter bot!
eBay Holiday Giveaway Thwarted By Automated Script
Thursday, December 4th, 2008 | Business, eBay, Hack, News, Promotion | No Comments

Apparently eBay’s in trouble for their recent $1 Holiday Doorbusters Giveaway, where they ‘randomly’ give out 100 gifts ranging from GPS devices, jewelry and even a new Chevrolet Corvette for only $1 (with a new item given away each day). The catch? eBay isn’t going to tell you what item is being given away each day or even what category it’ll be in….a plan that apparently was full of holes.
The contest was brought down to a screeching halt on Tuesday when hundreds of users began using automated scripts that would continuously bid on items for $1 in an attempt to secure the winning bid even before the actual auction page goes public. This then resulted in a large crowd of the more ‘honest’ users becoming furious at eBay for letting these rogue ‘script kiddies’ get away with cheating the system….evidence of which can be found throughout the eBay public forums.
The script in question is right now all over the internet. You can find it for sale on RentACoder for $20 or even for free in various forums.
Poor eBay.
Add SEO Friendly Social Media Links To WordPress
Wednesday, December 3rd, 2008 | Blogging, Hack, Open Source, Promotion, SEM, Tools, Twitter | No Comments

Jeff from over at Perishable Press has just posted a handy guide to adding code to your WordPress theme that will enable you to offer SEO-Friendly, fully validating social media links for each of your pages or posts. If you want the easy way of adding social media links to your blog, there are countless WordPress plugins that will do just that, this method is for those of you who want to use as few plugins as possible (a real lean mean blogging machine!)
He gives the code for Delicious, Digg, Twitter, StumbleUpon, Technorati, Blinklist, Furl, Reddit and AddThis (with more sites provided in the comments).
Here’s an example for Digg.com:
<a rel="nofollow" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>" title="Submit this post to Digg">Digg this!</a>
In order to add the code to each post, edit the single.php and paste in the appropriate code before the comments PHP tag. So you’d paste it before:
< ?php comments_template(); ?>
To add the code to your pages, edit page.php and paste the appropriate code after the PHP tag for your page content. So depending on your theme you’d paste it after:
< ?php the_content(); ?>
To have the links appear on the homepage after the end of each post, edit index.php and paste the appropriate code after the content PHP tag, though it might differ depending on your theme. So you’d paste the code this time after:
< ?php the_content(__('Read more'));?>
Go check out the full post for more examples.













