Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Generate embedded HTML tweets in Python. Can be imported as a module or run from the command line.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README Add links in README for further info.


Blackbirdpy is a Python implementation of Blackbird Pie, the
JavaScript tool @robinsloan uses to generate embedded HTML tweets for
blog posts.

This Python version was written by Jeff Miller,

Requires Python 2.6.

Robin Sloan's original blog post about JS Blackbird Pie:

Blog post about Blackbirdpy:


- To generate embedded HTML for a tweet from inside a Python program:

  import blackbirdpy
  embed_html = blackbirdpy.embed_tweet_html(tweet_url)

- To generate embedded HTML for a tweet from the command line:

  $ python <tweeturl>

- To run unit tests from the command line:

  $ python --unittest
Something went wrong with that request. Please try again.