Skip to content
This repository

HTTPS clone URL

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…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README
Octocat-spinner-32 blackbirdpy.py
README
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, http://twitter.com/jmillerinc

Requires Python 2.6.

Robin Sloan's original blog post about JS Blackbird Pie:
    http://media.twitter.com/blackbird-pie

Blog post about Blackbirdpy:
    http://jmillerinc.com/2010/06/17/blackbirdpy-embedded-tweets-in-python/

Usage:

- 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 blackbirdpy.py <tweeturl>

- To run unit tests from the command line:

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