Skip to content
Generate embedded HTML tweets in Python. Can be imported as a module or run from the command line.
Find file
Pull request Compare This branch is 1 commit behind jmillerinc:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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.