Peter Hoffmann Code Blog

Random postings about python, code and social apps. If you want more, check out my friendfeed profile.
Sep 20
Permalink

twitter export friends as foaf

A small python script to export your twitter friends.

The script can export the raw screen_names or export an Friend of a Friend (foaf) RDF file.

If you want to use the foaf type export you need to install the python RDF library and have a valid twitter user account to access the API. The python-twitter library is needed anyway.

Usage:

python twitterFriends.py user

python twitterFriends.py -u yourusername -p yourpassword -t foaf user

You can download the script here: twitterFriends.py.

Comments (View)
blog comments powered by Disqus