Announcing support for TweepML

I’m excited to announce that Twibes now supports TweepML export for all groups. This will make it easier to take your Twibe with you to other Web sites and Twitter clients. Here is a quick video how to to follow everybody in your twibe on Twitter.

TweepML Export

To get the TweepML URL for your twibe, go to the bottom right hand side of the page. Click the link, then copy and paste the URL into whatever tool you are using to import the list.

For the techno-geeks out there, TweepML is a convenient XML based format for exchanging lists of Twitter users. If you have your own Twitter group tool, generating TweepML is easy. Twibes is written in Python using the Django framework. The code to generate TweepML looks like this:

class GroupMemberPage(base_page.BasePage):
 def get(self, group_name, format):
   order = 'ASC'
 limit = self.request.get('limit') or (100 if format != 'rss' else 15)
 limit = int(limit)

 if self.request.get('date') and len(self.request.get('date').strip()) > 0:
   date = self.request.get('date')
 else:
   date = None

  # call to database to get tweeps
 self.context['group_data'] = all.find_group_members(group_name, date, order, limit, True)

That context hash is then rendered using a template like this:

<?xml version="1.0" encoding="utf-8"?>
<tweepml version="1.0">
 <head>
 <title>{{ group_data.name }} Twitter Group</title>
 <generator>twibes.com</generator>
 <generator_link>http://twibes.com</generator_link>
 </head>
 <tweep_list title="{{ group_data.name }}">
 {% for group_member in group_data.members %}
 <tweep screen_name="{{group_member.username}}"
   profile_image_url="{{group_member.profile_image_url}}"
   created_at="{{group_member.created_at}}"/>
 {% endfor %}
 </tweep_list>
</tweepml>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>