Updated to reflect new OAuth/Basic Auth scenario
Updated A new and easy way to access Twitter data with Python. (textile)
parent
4c3ba11b9d
commit
99fae398ae
1 changed files with 8 additions and 8 deletions
16
Home.textile
16
Home.textile
|
|
@ -1,14 +1,14 @@
|
||||||
h1. A new and easy way to access Twitter data with Python.
|
h1. An easy way to access Twitter data with Python.
|
||||||
|
|
||||||
Twython takes care of authenticating a user with Twitter, so you can get full API access. Twython also wraps the Twitter Search API, something which other libraries don't do at the moment. As a final plus, Twython (will have) support for OAuth with Twitter, while maintaining support for Basic Authentication. If that hasn't convinced you yet, check out the example code below:
|
|
||||||
|
|
||||||
|
Twython is a Python API wrapper for the Twitter REST API.
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
import twython
|
from twython import Twython
|
||||||
|
|
||||||
# Create a Twython instance using Basic (HTTP) Authentication and update our Status
|
# Create a Twython instance
|
||||||
twitter = twython.core.setup(username="example", password="example")
|
# Note: For OAuth examples, see the included Django application.
|
||||||
twitter.updateStatus("See how easy this was?")
|
twitter = Twython()
|
||||||
|
twitter.searchTwitter(q="bert")
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ Maybe you're happy with the current crop of Twitter libraries for Python, but I'
|
||||||
|
|
||||||
h1. What does Twython require?
|
h1. What does Twython require?
|
||||||
|
|
||||||
Twython requires the "simplejson":http://code.google.com/p/simplejson/ library for parsing Twitter responses.
|
Twython requires the "simplejson":http://code.google.com/p/simplejson/ library for parsing Twitter responses, as well as oauth2 for handling OAuth authentication.
|
||||||
|
|
||||||
h1. I have a patch, can I contribute back?
|
h1. I have a patch, can I contribute back?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue