From ae9652a0913f4517b742e193c66131cb41a9caf6 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Tue, 11 Oct 2011 05:38:35 +0900 Subject: [PATCH] Syntax highlighted --- README.markdown | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.markdown b/README.markdown index bb8631f..ccfb1eb 100644 --- a/README.markdown +++ b/README.markdown @@ -35,21 +35,24 @@ Installing Twython is fairly easy. You can... ...or, you can clone the repo and install it the old fashioned way. + git clone git://github.com/ryanmcgrath/twython.git cd twython sudo python setup.py install Example Use ----------------------------------------------------------------------------------------------------- - from twython import Twython - - twitter = Twython() - results = twitter.search(q = "bert") - - # More function definitions can be found by reading over twython/twitter_endpoints.py, as well - # as skimming the source file. Both are kept human-readable, and are pretty well documented or - # very self documenting. +``` python +from twython import Twython + +twitter = Twython() +results = twitter.search(q = "bert") +# More function definitions can be found by reading over twython/twitter_endpoints.py, as well +# as skimming the source file. Both are kept human-readable, and are pretty well documented or +# very self documenting. +``` + A note about the development of Twython (specifically, 1.3) ---------------------------------------------------------------------------------------------------- As of version 1.3, Twython has been extensively overhauled. Most API endpoint definitions are stored